sonic-buildimage/files/image_config/logrotate
Sudharsan Dhamal Gopalarathnam 1524d6569d [rsyslog]Setting log file size to 16Mb (#9504)
Why I did it
The existing log file size in sonic is 1 Mb. Over a period of time this leads to huge number of log files which becomes difficult for monitoring applications to handle.
Instead of large number of small files, the size of the log file is not set to 16 Mb which reduces the number of files over a period of time.

How I did it
Changed the size parameter and related macros in logrotate config for rsyslog

How to verify it
Execute logrotate manually and verify the limit when the file gets rotated.

Signed-off-by: Sudharsan Dhamal Gopalarathnam <sudharsand@nvidia.com>
2022-01-16 22:45:08 -08:00
..
logrotate.d [rsyslog]Setting log file size to 16Mb (#9504) 2022-01-16 22:45:08 -08:00
logrotate-config.service [rsyslog]Setting log file size to 16Mb (#9504) 2022-01-16 22:45:08 -08:00
logrotate-config.sh [rsyslog]Setting log file size to 16Mb (#9504) 2022-01-16 22:45:08 -08:00
logrotate.conf [System logs]: Improvements to prevent filling /var/log partition (#865) 2017-08-10 16:24:57 -07:00
rsyslog.j2 [rsyslog]Setting log file size to 16Mb (#9504) 2022-01-16 22:45:08 -08:00