How to create limit size log make it rotates?
rsyslog will do it
# provides UDP syslog reception module(load="imudp") input(type="imudp" port="514") # provides TCP syslog reception module(load="imtcp") input(type="imtcp" port="514") # List of sub networks authorized to connect : $AllowedSender UDP, 127.0.0.1, 192.168.9.0/24 $AllowedSender TCP, 127.0.0.1, 192.168.10.0/24
That config doesn’t limit log size or rotate the logs. To do that you need to combine rsyslog to “data filtrate” the logs and logrotate to control size and age of the logs.
But how to do this idk
Logrotate's an installable package.
This is a very good manual how to config logrotate.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.