[CentOS] Mark facility in CentOS

Mon Aug 16 22:22:05 UTC 2010
Daniel Bareiro <daniel-listas at gmx.net>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi, John.

On Monday, 16 August 2010 00:31:14 -0300,
JohnS wrote:

>> This is my first message to the list. Some time ago I'm user of
>> Debian GNU/Linux and recently I also started to use CentOS GNU/Linux.
>> 
>> Does anyone know how to enable the mark facility on CentOS? According
>> to what I was seeing, unlike Debian GNU/Linux, which uses rsyslog,
>> CentOS still uses the traditional syslog where the parameters to be
>> passed to the daemon are taken from /etc/sysconfig/syslog and the
>> default configuration

> -m 1   ???  The man page isn't much help....Get your feet weat...

I thought the first referral to see would be "man syslogd":

       -m interval
	      The syslogd logs a mark timestamp regularly.  The default
	      interval between two -- MARK -- lines is 20 minutes.  This
	      can be changed with this option.  Setting the interval to
	      zero  turns  it off entirely.


This time I did a test again and it worked even without the need to add
mark.* in /etc/syslog.conf. I presume that maybe when I tried it last
week, it would have failed because I incorrectly used "-m 20" in
SYSLOGD_OPTIONS in /etc/init.d/syslog rather than in /etc/syslog.conf.

I also see that timestamps are placed with the default interval of 20
minutes leaving the variable empty, ie:

SYSLOGD_OPTIONS=""


Thanks for your reply.

Regards,
Daniel

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkxpurMACgkQZpa/GxTmHTej4QCbBJZfOV0tioBzUeLh9FU28FcZ
tS4AnjJJx45iNJ1N9UjHfhw/30fMA3cY
=NKT3
-----END PGP SIGNATURE-----