Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Logrotate - recursive directories
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
outspoken
Guru
Guru


Joined: 14 Feb 2004
Posts: 464
Location: orlando, fl

PostPosted: Mon Jun 13, 2005 6:37 pm    Post subject: Logrotate - recursive directories Reply with quote

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
View user's profile Send private message
outspoken
Guru
Guru


Joined: 14 Feb 2004
Posts: 464
Location: orlando, fl

PostPosted: Mon Jun 13, 2005 8:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum