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. ;) Ken Garland wrote:
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/
_______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html