[Users] OpenSER and sysklogd help...

Geir O. Jensen geir.o.jensen at uninett.no
Wed Jun 20 14:51:49 CEST 2007


My log files are filling up with errors, and while trying to debug those I
wanted to move tracing info and stat info to another log file. Taking a cue
from syslog.conf's mail example on my Ubuntu server I entered;

local0.*                        /var/log/openser.log
local0.info                     /var/log/openser-info.log
local0.notice                   /var/log/openser-notice.log
local0.err                      /var/log/openser-err.log

And restarted my sysklogd... (previously all messages were logged to
openser.log)

However, what happened surprised me a bit...

openser-err.log got all the error messages, but so did the other 3 log
files. Further, messages logged with xlog("L_INFO","SOMETHING") and
xlog("L_NOTICE","SOMETHINGELSE") went into the 3 first logs but not the
openser-err.log

So basically it didn't work...

OpenSER.cfg has this at the top;
debug=3           # debug level (cmd line: -dddddddddd)
fork=yes
log_stderror=no   # (cmd line: -E)
log_facility=LOG_LOCAL0
log_name="OpenSER"

I really need to seperate the errors from the other files, and split up info
and notice - we use them to log different things. Any ideas as to what is
going on?

// sip:gojensen at uninett.no | h323: 004710012
   pstn: +47 73 55 79 23   | fax: +47 73 55 79 01 





More information about the Users mailing list