This repository has been archived on 2025-03-20. You can view files and clone it, but cannot push or open issues or pull requests.
sonic-buildimage/files/build_templates
Joe LeVeque 6c202919b3 [System logs]: Eliminate duplicate log messages and attempt rotation more frequently (#520)
* Rename 'ACSFileFormat' -> 'SONiCFileFormat'

* Rename '00-acs.conf' -> '00-sonic.conf'

* Add logrotate.d and systemd-journald config files to image

* Log all SONiC process messages to /var/log/syslog; prevent duplicate logging to /var/log/messages

* Do not redirect cron and daemon logs to their own files, let them log to /var/log/syslog

* Log all teamd messages to /var/log/teamd.log; Add more SONiC program names to SONiC rules clause

* Remove duplicate code by condensing quagga programs into a list; Fix teamd log rule

* Kernel and LPR messages no longer getting duplicated to their own log files

* Now calling logrotate every minute via cron job

* Need full path to logrotate in cron job

* Add '.log' suffix to wildcards, otherwise logrotate will rotate already-rotated logs (e.g., bgpd.log.1.1.1.1.1...)

* Add microsecond granularity to syslog messages

* Don't overwrite system crontab, instead, install additional logrotate crontab file into /etc/cron.d

* Removed incomplete concept of per-process SONiC logs. We can revisit again later
2017-04-21 08:22:44 -07:00
..
bgp.service.j2 [oneimage]: Fix race condition in systemd container services (#421) 2017-03-22 13:26:00 -07:00
database.service.j2 [oneimage]: Fix race condition in systemd container services (#421) 2017-03-22 13:26:00 -07:00
dhcp_relay.service.j2 [oneimage]: Fix race condition in systemd container services (#421) 2017-03-22 13:26:00 -07:00
docker_image_ctl.j2 [oneimage] Add ":latest" to docker run script (#477) 2017-04-05 14:20:02 -07:00
lldp.service.j2 [oneimage]: Fix race condition in systemd container services (#421) 2017-03-22 13:26:00 -07:00
pmon.service.j2 [oneimage]: Fix race condition in systemd container services (#421) 2017-03-22 13:26:00 -07:00
snmp.service.j2 [oneimage]: Fix race condition in systemd container services (#421) 2017-03-22 13:26:00 -07:00
sonic_debian_extension.j2 [System logs]: Eliminate duplicate log messages and attempt rotation more frequently (#520) 2017-04-21 08:22:44 -07:00
swss.service.j2 [mellanox]: Add support for Mellanox MSN2410 (#491) 2017-04-10 14:36:36 -07:00
teamd.service.j2 [oneimage]: Fix race condition in systemd container services (#421) 2017-03-22 13:26:00 -07:00