Friday 24 June 2011

syslog in linux/redhat

File is in /etc/syslog.conf

by default:
*.info;mail.none;authrpiv.none;cron.none /var/log/messages


meaning logging all subject at info (and above) level but the mail and cron not.
to the messages file

To make it particular:
kern.=info (only kernel with level info)

Numerical Code Severity Reference
-------------- ------------------------------------------- ---------
0 Emergency: system is unusable [RFC3164]
1 Alert: action must be taken immediately [RFC3164]
2 Critical: critical conditions [RFC3164]
3 Error: error conditions [RFC3164]
4 Warning: warning conditions [RFC3164]
5 Notice: normal but significant condition [RFC3164]
6 Informational: informational messages [RFC3164]
7 Debug: debug-level messages [RFC3164]


7 is the most detail severity level.

No comments:

Post a Comment