Re: syslogd quesstion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx -
- VitalStream, Inc.                       http://www.vitalstream.com -
-                                                                    -
-  The problem with being poor is that it takes up all of your time  -
----------------------------------------------------------------------


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux