summaryrefslogtreecommitdiff
path: root/scripts/system/vyatta_update_syslog.pl
AgeCommit message (Collapse)Author
2012-04-18Use rsyslog to trigger log rotationJames Davidson
The previous implementation of log rotation used an hourly cron job to check log file size and possibly perform a rotation. If the logging rate is high, this interval may allow for root file system space exhustion. Utilizing rsyslog's outchannel mechanism enables log rotation to be initiated as soon as the log file becomes larger than its configured size. Fixes Bug 7807.
2010-10-08Convert from syslog to rsyslogStephen Hemminger
Configuration file is /etc/rsyslog.conf and it is supports directory of include parameters so do not need to edit rsyslog.conf directly
2009-07-17Fix generation of syslog host targetsStephen Hemminger
Bug 4494 (cherry picked from commit 7dc1c900184a629975b2e22e79c5dc44c494448e)
2009-05-06Reindent syslog scriptStephen Hemminger
2009-05-06Allow specifying 'protocols' for syslog facilityStephen Hemminger
Since quagga uses local7, make it a real facility. Allow local7 for compatiablity. Bug 4263
2009-04-10Fix file syslog targetStephen Hemminger
The new code was requiring full pathname, but old version was using /var/log/user/<filename> so make new code work like old code.
2009-04-09Resolve problems with syslog.confStephen Hemminger
Default fallback code was broken Change to blocked out region for Vyatta config.
2009-04-08Rewrite existing syslog configuration updateStephen Hemminger
Do most of the work in the rewritten vyatta_update_syslog code. Handle multiple facilities for same target without causing duplicate log messages. Never restart syslog daemon, just reload it and only if the configuration has changed.
2009-03-11Fix perlcritic warning about bare file handleStephen Hemminger
Use 3 arg open.
2008-10-10Fix Bug 3751 configuring multiple global syslog facilities overwrites ↵Mohit Mehta
previous ones in /etc/syslog.conf - multiple nodes configured under 'system syslog global' are appended to syslog.conf - default '*.notice -/var/log/messages' is removed from syslog.conf if any node is configured under 'system syslog global' and is put back when nothing configured under 'system syslog global' - syslog process only restarted once after making all changes in config - added commit checks at 'system syslog <>' level nodes to specify facility
2007-10-19move "system" configuration templates/scripts from vyatta-cfg.An-Cheng Huang