Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

filtering lines OUT in Console app

I am looking in my system.log checking around for odd activity on various machines. On one of these servers, I have approximately 10 gazillion repeats of the triple:

Jun 25 00:29:56 xserve com.apple.launchd[1] (com.apple.kdcmond[34743]): posix_spawn("/usr/sbin/kdcmond", ...): No such file or directory

Jun 25 00:29:56 xserve com.apple.launchd[1] (com.apple.kdcmond[34743]): Exited with exit code: 1

Jun 25 00:29:56 xserve com.apple.launchd[1] (com.apple.kdcmond): Throttling respawn: Will start in 10 seconds


(It repeats every 10 seconds day and night...) The "Filter" box evidently was named by someone unfamiliar with the common meaning of the word "filter" as it only filters out things which do not match the string, rather than things which do. (If I were to design a "filter" to find a needle in a haystack, I would have it discard hay rather than things not-hay, but, hey, what do I know?)


Is there any flag or setting which filters OUT everything that contains a string? (can't find any plausible menu items, or anything in the Help documents)

Posted on Jul 7, 2014 7:34 AM

Reply
10 replies

Jul 7, 2014 7:28 PM in response to WZZZ

What you are seeing is the same thing that I am seeing. I need to find any entries that do NOT contain the string "com.apple.kdcmond", and there is no apparent way to do so. I am looking to see if there are unauthorized users logging in to the computer during the early hours of the morning, and there is no way that I can see it in the blizzard of kdcmond errors.


What I need is a 'grep -v' but I can't find the physical location of the logfiles to run grep on the command line.


(Also the logfiles roll quite regularly, and so don't fill up...)

Jul 8, 2014 12:27 PM in response to cathy fasano

What about searching through system log and its archives using "login"?




Where did my disk space go?


Very large Log Files caused by repeated messages from a failing system process, or logs that haven't been "rotated" in a very long time. See the green box in OSX Log Files.

http://pondini.org/OSX/DiskSpace.html


If the computer isn't awake at 12:30 AM the system log will never be rotated.


Can be done from this command


sudo newsyslog -F /var/log/system.log

Jul 9, 2014 12:42 PM in response to Mark Jalbert

I am still trying to understand why the OP couldn't just filter for the string "login" and search through the zipped system logs in /var/log, re-entering "login" for each log. How much trouble would that have been? I only have 7 .bz2 system logs. Why all the exasperation at all the extraneous clutter when string matching would have whittled it all down to just the different logins. What am I not understanding?

Jul 9, 2014 2:55 PM in response to WZZZ

The file server is already logged on. At some point we got sloppy and turned off the password protection on the screen saver.* Some oddities gave us a scare, we turned on the passwords, and now are pretty confident that nothing untoward happened during the period when the passwords were off.


Apple's tools always seem to come up short and I'm left with good old unix -- find, grep, etc.


*(when the disk crashed and we had to disassemble this mac mini server to replace it, and in the process of reassembling it broke a piece off the motherboard, which one of my coworkers soldered back on because he had a previous fortuitous career as an electronics tech. No, apple, no matter what you call it, a "mac mini server" is not a server.)

filtering lines OUT in Console app

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.