Re:[syslog-ng]Log prefix under Solaris
You can disable solaris message ID generation editing the file /kernel/drv/log.conf Just set msgid=0 instead of msgid=1. That way message IDs will not be generated. Amodiovalerio [Hypo] Verde ---------- Initial Header ----------- From : syslog-ng-admin@lists.balabit.hu To : "Syslog-NG" syslog-ng@lists.balabit.hu Cc : Date : Tue, 2 Mar 2004 11:34:52 +0100 Subject : [syslog-ng]Log prefix under Solaris
Hey again,
All log messages that syslog-ng reads from sun-streams("/dev/log" door("/etc/.syslog_door")); are prefixed with the following string: "[ID 702911 local3.alert] "
If I understand correctly, it seems that any program using the standard syslog interface under Solaris will see there messages prefixed with an ID and the facility they used. This is despite any formatting option I can tell, this is simply the content of $MSG.
This, however, doesn't happen with UDP messages.
I wonder if there's a way to remove this part, either at on syslog-ng side or in the calls to the syslog interface of Solaris?
Regards,
-- Loïc Minier <lool@dooz.org> _______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
Amodiovalerio Verde <amover@libero.it> - Tue, Mar 02, 2004:
You can disable solaris message ID generation editing the file /kernel/drv/log.conf Just set msgid=0 instead of msgid=1.
I am running Solaris 8, and there was no such msgid=0 property in /kernel/drv/log.conf. I did not find useful documentation of the properties of the log driver (no log(7d)), and I simply added the property to my /kernel/drv/log.conf which now looks like: name="log" parent="pseudo" instance=0 msgid=0; I used adb for the hot-reconfiguring (you're supposed to reboot for the new property to take effect) with the following command: # echo log_msgid/W0 | adb -kw Thank you for your help! -- Loïc Minier <lool@dooz.org>
participants (2)
-
Amodiovalerio Verde
-
Loic Minier