1831926 Members
3513 Online
110031 Solutions
New Discussion

syslog.log

 
Omar Alvi
Occasional Contributor

syslog.log

Hi,

I wanted to know how for how long does a system keep messages in syslog.log before moving them to OLDsyslog.log? Like rc.log is for each reboot.

Can the syslog.log file be customised for example to keep messages for a week before moving them?

Regards,

-Alvi
6 REPLIES 6
Umapathy S
Honored Contributor

Re: syslog.log

Alvi,
The contents of syslog.log will me moved to OLDsyslog.log whenever the syslogd is restarted.

I dont think the syslog.log itself can be customized to keep messages. You can either do it manually or write a cron job to do the same once in a week.

HTH,
Umapathy

Arise Awake and Stop NOT till the goal is Reached!
Robert-Jan Goossens
Honored Contributor

Re: syslog.log

Hi Alvi,

yes, normaly after every reboot. There are some tools you can use to rotate syslog, check next question for more info.

http://bizforums.itrc.hp.com/cm/QuestionAnswer/0,,0x2962c1c4ceddd61190050090279cd0f9,00.html

Hope it helps,

Robert-Jan.
Omar Alvi
Occasional Contributor

Re: syslog.log

Thanks for the replies.

So syslog.log starts at every execution of syslogd.

But then whats the utility of syslog.conf? How can we use this file ... and what are the fields shown?

Regards,

-Alvi
Umapathy S
Honored Contributor

Re: syslog.log

Alvi,
man syslogd explains the configuration very much clearly.

If there is any more doubt, please revert back.

HTH,
Umapathy

Arise Awake and Stop NOT till the goal is Reached!
Robert-Jan Goossens
Honored Contributor

Re: syslog.log

Alvi,

Take a look at man page of syslogd

syslogd reads and logs messages into a set of files described by the configuration file /etc/syslog.conf.

http://www.pcs-computing.com/support/syslog_config.html

Hope it helps,

Robert-Jan.
Sorrel G. Jakins
Valued Contributor

Re: syslog.log

On HPUX, anually. On windows, daily, sometimes more often.

sorrel ;-)