database log severity.

Tags:

#1 pissanello

Hello There,

I'm working on customer poc that to collect database log and convert it to syslog to send another monitoring tool.

the om_file working as expect, but there are only send on info severity. it there any way that I can process that db log format and make it have severity in syslog ?

thank you , Kriengsak

#2 admDeactivated Nxlog ✓ (Last updated )
#1 pissanello

Hello There,

I'm working on customer poc that to collect database log and convert it to syslog to send another monitoring tool.

the om_file working as expect, but there are only send on info severity. it there any way that I can process that db log format and make it have severity in syslog ?

thank you , Kriengsak

You can override it with the following: ``` if $raw_event =~ /ERROR/ $SyslogSeverityValue = 3; else $SyslogSeverityValue = 6; to_syslog_bsd(); ``` See the [Fields used by xm_syslog](https://nxlog.co/documentation/nxlog-user-guide#xm_syslog_fields) in the user guide.