syslogd quesstion
Rick Stevens
rstevens at vitalstream.com
Fri Nov 11 18:26:29 UTC 2005
On Fri, 2005-11-11 at 23:07 +0530, Nikhil wrote:
> Hello Friends
>
> I have a syslogd , sucessfully implemented with -r option in a
> network. Currently all the messages that are being logged are in the
> below format
>
> <date> <machinename> <processname>[<pid>]: <message>
>
> Can I have some format where in the facility/priority is also
> mentioned so that I can see under what facility and priority the
> messages are being logged.
> may be like this:
> <date> <machinename> <facility.priority> <processname>[<pid>]:
> <message>
Only by changing the syslog.conf file and making each facility/priority
log to a different file. That's actually the reason for allowing you
to specify such things...to segregate different kinds of messages
into different files. Example:
mail.emerg /var/log/mail/emergency.log
mail.alert /var/log/mail/alert.log
mail.crit /var/log/mail/critical.log
mail.err /var/log/mail/error.log
mail.warning /var/log/mail/warning.log
mail.notice /var/log/mail/notice.log
mail.info /var/log/mail/info.log
mail.debug /var/log/mail/debug.log
Other than that, I know of no way to get the facility or priority to
be displayed.
----------------------------------------------------------------------
- Rick Stevens, Senior Systems Engineer rstevens at vitalstream.com -
- VitalStream, Inc. http://www.vitalstream.com -
- -
- The problem with being poor is that it takes up all of your time -
----------------------------------------------------------------------
More information about the fedora-list
mailing list