Hi Misc, I read man pages for newsyslog.conf several times and I am affraid that I know the answer. I have a centralized logging server running syslog-ng. The files are stored in the following directory structure
/var/log/syslog-ng/HOSTS/2017-03 where 2017-03 contains one folder per each device in my lab. Each device folder contain various log files with the time stamp. For example folder titan for my LDAP server titan looks like this after two days. titan: auth-2017-03-20 auth-2017-03-21 daemon-2017-03-20 daemon-2017-03-21 syslog-2017-03-20 syslog-2017-03-21 I was wondering how could I possibly use newsyslog from the base to rotate the all the files from the directories? One way would be to have a globe (G) option which would rotate all files in the given directory but I don't see it in the man pages probably because of security issues such flag could cause. I would like to gzip files on daily base with a timestamp and keep them for a three months per machine. Something like /var/log/syslog-ng/ARCHIVE/2017-03/titan/auth-2017-03-20.gz Thank you so much! Predrag