I am following the CEF documentation from here

In this its written that
`Severity is a string or integer and reflects the importance of the event. The valid string values are
Unknown, Low, Medium, High, and Very-High. The valid integer values are 0-3=Low, 4-6=Medium,
7- 8=High, and 9-10=Very-High.`

I am using xm_cef module to parse the CEF message and according to the above description if String values are provided they should be converted to appropriate Integer values or left as it is
but the xm_cef module is converting the string values to 0.

CEF:0|Product|Example|unknown|1|Account|Very-High|dvchost=localhost duser=1234567 src=
the severity value is Very-High

Output:- (the field CEF Severity is 0 )
"Message":"0|Product|Example|unknown|1|Account|Very-High|dvchost=localhost duser=1234567 src=",

I have tried with Low, Medium,High,Very-High,it converts all of them to 0.
I have used the conf file same as in https://nxlog.co/question/4618/xmcef-xmjson-unexpected-behaviour-while-converting-cef-json#comment-7579
NXlog version :- `nxlog-4.3.4308-trial`

There is no log output with respect to this

AskedMay 2, 2019 - 2:18pm

Answer (1)

Currently the field is set to expect an integer. We have created a feature request to extend this to include strings as well.

$CEFSeverity (type: integer) A numeric value between 1 and 10 that indicates the severity of the event, where: 1 is the lowest event severity, 10 is the highest event severity. This field takes the value of the Severity CEF header field.

Thank you

Comments (1)