Syslog / Rsyslog rotate daily at different directory mount device

Here is a working config of rsyslog and logrotate in Redhat Linux, rotating compress files to a different mount point in a different device. You cannot use just ‘olddir‘ option to point compressed rotation log files to a different directory sitting in a different device. Below is the workaround for rotating log files to different device.

Below are my mount points

bash-4.2$ df -h

 

 

bash-4.2$ cat /etc/rsyslog.conf

bash-4.2$ cat /etc/logrotate.conf

bash-4.2$ cat /etc/logrotate.d/syslog

 



"

Trade_on_STP_accounts-ENG_336x280

Comments

comments