Syslog can be run with a -m " option that just writes "- MARK --" at whatever intervals you specify. The purpose is to provide reassurance that syslogd is listening and doing its job even if it has nothing else to do right now.
I've had people worried by their seeing MARK in logs and not knowing why it was there, but until this thread I'd never seen anyone wondering why it WASN'T there. The reason is that syslogd doesn't bother to write a mark if something else cause it to write a log entry during the interval you specified. After all, the point of -m is to know that syslogd is alive and working, so why write a special mark if it just did real work? That's apparently the attitude of whoever wrote it, and it isn't entirely unreasonable, though as someone mentioned in this thread, it probably should be noted in the documentation.
So - if you are seeing "MARK, that's normal. Most systems are set up to do that. It lets you know that syslog has been doing its job, it isn't dead, there's just nothing to do right now. If you are NOT seeing it, but are seeing regular activity from other sources, that's normal too - don't worry about it.
Another syslog issue that comes up now and then is syslog NOT writing to a log after you've told it to do so in /etc/syslog.conf. That's usually because you forgot to create the file; "man syslog" specifically says "For security reasons, syslogd will not append to log files that do not exist; therefore, they must be created manually before running syslogd.".
"ttloop: peer died" could mean someone is scanning for open ports.
Entries complaining about passwords mean someone has mistyped a password or is trying to guess one. Back in the days of dumb terminals, you'd see this when someone left a book lying on a keyboard.
Got something to add? Send me email.
More Articles by Tony Lawrence © 2011-05-11 Tony Lawrence
Today, kernels are too much obedient servants, blindly doing the bidding of any program that asks. (Tony Lawrence)
"Syslog can be run with a -m " option that just writes "- MARK --" at whatever intervals you specify. The purpose is to provide reassurance that syslogd is listening and doing its job even if it has nothing else to do right now."
Of course, you could look at ps -ef | grep syslogd to see if it is alive. <Smile> If the server is running any Internet-style services (e.g., named, sendmail, etc.) log entries are going to appear sooner or later.
:-)
Sun Jun 28 09:18:39 2009: 6553 anonymous
Thanks, Tony!
I have just wondered why the MARKs appear in my syslog rather irregularly; your blog was the first hit returned by Google. Indeed, it should be documented, under the description of -m flag.
------------------------
Printer Friendly Version
Syslogd MARK option Copyright © June 2004 Tony Lawrence
Have you tried Searching this site?
This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.
Contact us
Printer Friendly Version