Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

syslog.conf archive

Status
Not open for further replies.

George221

MIS
Dec 2, 2005
50
US
I'm trying to rotate, compress and archive our daily syslogs but the following line doesn't seem to be working

*.debug;local5.none /var/logs/syslog.log rotate files 7 time 1d compress archive archive

I have a folder called "archive" in /var/logs.....tried also putting the full path archive /var/logs/archive but that didn't work either. The syslog.log just keeps building. What am I doing wrong?
 
yes (ie: refresh -s syslogd)
does the archive parm seem right? in this case it's just the name of the archive folder within /var/logs.
 
Your syntax looks fine! I would rather use the full path though /var/logs/archive.

Have you tried removing the ";local5.none"? (refresh -s syslogd)

Regards,
Khalid
 
try

*.debug;local5.none /var/logs/syslog.log rotate files 7 time 1d compress archive path <- Where you want the files archived to.

also

Files referenced in syslog.conf need to exist, so you need to touch them and Remember that the syslog.conf file requires tabs as the field delimiter.


Mike

"Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem mild, harmless, rather engaging little things, not at all like the staring defects in other people's characters."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top