facility/Priority

General discussions here

Moderator: rgerhards

facility/Priority

Postby tradergt on Fri Sep 30, 2005 5:00 pm

Seems the facility/priority do not map like the old sysklod did. Is there a doc to explain this?

Thanks
tradergt
 

Professional Services Information

  • Custom written rsyslog.conf?
  • Maintenance Contract?
  • Installation support?

RE: facility/Priority

Postby rgerhards on Fri Sep 30, 2005 5:05 pm

They should be the same - can you explain where you see the troubles. Eventually a bug...

Rainer
User avatar
rgerhards
Site Admin
 
Posts: 1780
Joined: Thu Feb 13, 2003 11:57 am

Well...

Postby tradergt on Fri Sep 30, 2005 5:09 pm

well, hopefully it isnt sysklogd-sql changing things.. But I had a table set like so:

`facility` enum('auth','authpriv','cron','daemon','kern','lpr','mail','mark','news','security','syslog','user','uucp','local0','local1','local2','local3','local4','local5','local6','local7') collate latin1_general_ci NOT NULL default 'syslog',
`priority` enum('debug','info','notice','warning','warn','err','error','crit','alert','emerg','panic') collate latin1_general_ci NOT NULL default 'notice',

And its mapping user stuff under auth.. Just all over.. I dont really know if your wrong, or sysklogd-sql.. But if you contend your right, I just need some sort of mapping thing so I can set my table up right..
tradergt
 

RE: Well...

Postby rgerhards on Fri Sep 30, 2005 5:20 pm

I am not sure about the MySQL enum. What does it expect in the insert statement- a string of this name or a numerical value? Please be advised that rsyslogd uses numerical values and decodes them with the same calls than sysklogd does. The codes can be found in rfc 3164 (http://www.ietf.org/rfc/rfc3164.txt) in section 4.1.1.

Rainer
User avatar
rgerhards
Site Admin
 
Posts: 1780
Joined: Thu Feb 13, 2003 11:57 am

Postby tradergt on Fri Sep 30, 2005 5:44 pm

It would appear sysklog-sql. (which is a modified version of sysklod to log to mysql) seems to have mucked up the numbers..

Thanks for this link this is what I was looking for.
tradergt
 

Postby rgerhards on Fri Sep 30, 2005 5:46 pm

Glad I could help!

Rainer
User avatar
rgerhards
Site Admin
 
Posts: 1780
Joined: Thu Feb 13, 2003 11:57 am

Google Ads



Return to General

Who is online

Users browsing this forum: No registered users and 0 guests

cron