logrotate - Log rotation in redhat santiago -
i have daemon , fills 4 files every second , theses files piled end of day.
folder structure
/logs/project/
files
error.log warning.log notice.log inmessage.log
and want these logs folder backed automatically using log rotation
below have looked https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/s2-log_rotation.html can roate logs
but not understanding how set files in folder @ time @ moment , config file has
/logs/project/error.log{ rotate 5 daily postrotate /usr/bin/killall -hup syslogd endscript } /logs/project/warning.log{ rotate 5 daily postrotate /usr/bin/killall -hup syslogd endscript } /logs/project/notice.log{ rotate 5 daily postrotate /usr/bin/killall -hup syslogd endscript } /logs/project/inmessage.log{ rotate 5 daily postrotate /usr/bin/killall -hup syslogd endscript }
some of questions have 1. above configuration not working , doesnt create backup daily 2. effect syslogd essential project log issues 3. daemon keep running forever , details missing in log costly loss , command below stop logging? or create compressed backup files , not effect syslog daemon
usr/bin/killall -hup syslogd
- how can have configuration setup whole folder @ time rather setting every single file above ? tejas
Comments
Post a Comment