Operating System - HP-UX
1832981 Members
3000 Online
110048 Solutions
New Discussion

Re: syslog.dated didn't create old dated directories properly

 
Soontorn Vittayaprachsa
Occasional Advisor

syslog.dated didn't create old dated directories properly

I've just checked my syslog.dated and found that there are old syslogs until Jul 31, 2003 but the following date are missing Aug 1-3, 2003. The current link pointed to 04-Aug-hh:mm. like following,

drwxr-xr-x 2 root adm 8192 Jul 29 12:15 29-Jul-12:15
drwxr-xr-x 2 root adm 8192 Jul 30 12:15 30-Jul-12:15
drwxr-xr-x 2 root adm 8192 Jul 31 12:15 31-Jul-12:15
drwxr-xr-x 2 root adm 8192 Aug 04 16:27 04-Jun-16:27
lrwxr-xr-x 1 root adm 12 Aug 04 16:27 current -> 04-Aug-16:27

I'd like to know why my syslogd did not keep the log for Aug 1-3, 2003 directoies. How to get my syslog.dated gereated old syslog sequentially. I also checked that if there rm ... command via following command history 1 |more and could not found.

Rdgs,
Soontorn
3 REPLIES 3
Brian Bergstrand
Honored Contributor

Re: syslog.dated didn't create old dated directories properly

Is syslog.dated some kind of log roatation script? Syslogd itself doesn't rotate log files. First thing to check is the cron entry that runs this script and make sure it is running when you expect it to. For example it may only run M-F, and not on the weekends.
Soontorn Vittayaprachsa
Occasional Advisor

Re: syslog.dated didn't create old dated directories properly

Thanks Brian for the reply.

And rate to 8.

Rdgs,
Soontorn
Soontorn Vittayaprachsa
Occasional Advisor

Re: syslog.dated didn't create old dated directories properly

Thanks, my problem was fixed.