Below is a description of a syslog configuration. I do not have syslog.conf. How do I do that in SuSE 10.1 ??? Syslog Configuration Next, modify your syslog.conf (should be in /etc/syslog.conf), and add this line: # OpenSER messages, make sure this spacing is done with tabs, spaces may cause errors local7.*; -/var/log/openser * |Note: that on Solaris 9 (and maybe other systems), the asterisk (*) is NOT a Priority Level ONLY a Source Facility - which means it can only be used on the left, and not the right of the period (.). In such a case, this equivalent line will also cause all messages to be logged (”debug” and higher priorities, “debug” is the lowest priority):| local7.debug -/var/log/openser * /|Source: Source Facilities VS. Priority Levels, page 267; Darrell Ambro - Solaris System Administration|/ Create the log file: touch /var/log/openser Now, in OpenSER, to do some custom logging within your route (it will still catch all regular output from OpenSER, of course), I like to use xlog. Regular log will work, too.
On 27/09/06 19:39, Ronald Wiplinger wrote:
Below is a description of a syslog configuration. I do not have syslog.conf. How do I do that in SuSE 10.1 ???
By default, SuSE (since at least 9.3) uses syslog-ng, which is a lot better than the old syslog. Look in /etc/syslog-ng/ for the config files.
Darryl Gregorash wrote:
On 27/09/06 19:39, Ronald Wiplinger wrote:
Below is a description of a syslog configuration. I do not have syslog.conf. How do I do that in SuSE 10.1 ???
By default, SuSE (since at least 9.3) uses syslog-ng, which is a lot better than the old syslog. Look in /etc/syslog-ng/ for the config files.
Thanks, but still not working. I have added in syslog-ng.conf.in: filter f_openser { facility(local7; }; destination openser { file("/var/log/openser"); }; log { source(src); filter(f_openser); destination(openser); }; -rw-r--r-- 1 root root 5479 Sep 10 20:26 syslog-ng.conf -rw-r--r-- 1 root root 5717 Sep 28 11:45 syslog-ng.conf.in I restarted both # kill -9 10038 10046 # /sbin/klogd -c 1 -x -x # /sbin/syslog-ng there is nothing in /var/log/openser What do I miss? bye Ronald
On 27/09/06 21:59, Ronald Wiplinger wrote:
Darryl Gregorash wrote:
On 27/09/06 19:39, Ronald Wiplinger wrote:
Below is a description of a syslog configuration. I do not have syslog.conf. How do I do that in SuSE 10.1 ???
By default, SuSE (since at least 9.3) uses syslog-ng, which is a lot better than the old syslog. Look in /etc/syslog-ng/ for the config files.
Thanks, but still not working. I have added in syslog-ng.conf.in:
filter f_openser { facility(local7; }; Try taking local7 out of filter f_local (?) and/or check to see if there is a /var/log/localmessages that contains the log messages you want.
participants (2)
-
Darryl Gregorash
-
Ronald Wiplinger