Whenever I execute
ls command in
/var/log directory, I could find log files, e.g.
messages, and their rotated versions, e.g.
Even though I am not using any utility like
logrotate, how are these files being rotated automatically? What is the criteria (e.g. log file should reach 'X' MB or it is rotated every 'N' days) for the file to be rotated? And how can I control (enable/disable) log rotation?
Note: I have written a bash script, that would run on 1st day of every month. This script would compress the log file, copy the compressed file to a remote server and empty the original log file (so that newer logs are available on the next run). So, I do not want the log file to be rotated.