View previous topic :: View next topic |
Author |
Message |
outspoken Guru
Joined: 14 Feb 2004 Posts: 464 Location: orlando, fl
|
Posted: Mon Jun 13, 2005 6:37 pm Post subject: Logrotate - recursive directories |
|
|
I have syslog-ng setup to add hostname dynamically. When a new server is pointed to the central log server it creates a /var/log/syslogs/$hostname dir and all logs from that host are put in there. in /etc/log/rotate.g/syslog-ng I have tried putting in /var/log/syslogs/* and this will not work.
Is there a way for logrotate to search directories recursively?
Or is there a way I can setup a script to interact with logrotate that will place a new entry for logs in the logrotate.d/syslog-ng file based on hostname directories created in /var/log/syslogs/ |
|
Back to top |
|
|
outspoken Guru
Joined: 14 Feb 2004 Posts: 464 Location: orlando, fl
|
Posted: Mon Jun 13, 2005 8:15 pm Post subject: |
|
|
after scouring the net i don't see a light at the end of this tunnel so i went an alternate route and just edited the syslog-ng.conf from $HOST/$FACILITY to $HOST.$FACILITY and will be using /var/log/syslogs/* in logrotate.d/syslog-ng
its working fine now. |
|
Back to top |
|
|
|