News:

On Tuesday September 6th the forum will be down for maintenance from 9:30 PM to 11:59 PM PDT

Main Menu

Syslog Message Levels

Started by MB.., August 31, 2011, 06:44:22 PM

Previous topic - Next topic

MB..

Is there a definition anywhere of what the Syslog Message Levels are?

I' m trying to reduce some of the noise from successful re-registrations in
the log file. eg.

Aug 31 21:06:42 phb10.arl  SPREG:Subst Contact w/ via-rport 5064
Aug 31 21:06:42 phb10.arl  REG:OK(30)


which occurs at 30 second intervals.

RonR

Syslog is virtually undocumented.  Trial and error is probably your only option.

infin8loop

Depending on what you are trying to accomplish with the syslog you might try running my obisyslogd.pl perl script as your syslog server for the Obi.  You could modify the script to look at each incoming log message using text substrings and ignore certain messages or write them to a different log file. 

I posted the script as an attachment in http://www.obitalk.com/forum/index.php?topic=185.msg9107#msg9107
The script can be used as an actual syslog server (it monitors a port for messages, and writes them to a file) and is not just for "pop up" messages.   

The majority of messages I see are level <7>, so I doubt a message level filter is going to be much help.  Or it could be I just don't understand message levels. 

[2011.09.02 20:23:27] [192.168.0.40] <7> SPREG:Subst Contact w/ via-rport 32953 
[2011.09.02 20:23:27] [192.168.0.40] <7> SPREG:Subst Contact w/ via-rport 32953 
[2011.09.02 20:23:27] [192.168.0.40] <7> REG:OK(30)

The above messages are "raw" right from the Obi beginning with the first "<".  The script prepends the [date time], and [source IP address].

 


"This has not only been fun, it's been a major expense." - Gallagher

Shale

I was wondering about Syslog Level. I changed it to 2. I no longer got the <7> level messages. So the default 7 allows 0...7.  The maximum is 7.

Old post, I know.