maillog 90 day retention
Business requirements define maillog retention @ 90 days. I've commented out /var/log/maillog in /etc/logrotate.d/syslog, commented out compression ( I may change that later) and created a new file for maillog in the same directory w/ the following content
Code:
/var/log/maillog { Thanks WR |
Looks legit and similar to what's in my logrotate config for maillog
|
Thanks!
I think the syslog line is irrelevant as I'm running rsyslog on CentOS 7.5. Thoughts? Code:
# ps -ef | grep syslog | grep -v grep |
If that's the only syslog style daemon running, then yeah, makes sense to omit the other one.
|
Quote:
Be prepared in that thread to tell us what you've found in your searches and what you've tried. |
1st of thanks for the help.
I think I've found success. Originally I posed the question about which logging mechanism I should use. Turns out syslog was the correct afterall Code:
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true /etc/logrotate.d/maillog Code:
/var/log/maillog |
All times are GMT -5. The time now is 02:13 AM. |