xm_cef, xm_json unexpected behaviour while converting CEF to JSON
While evaluating the NXLOG enterprise trial edition, we faced a blocker and I need some clarification/help on the same.
We are using NXLOG’s CEF module (xm_cef, xm_json ) which convert’s CEF messages into JSON. It is working properly for most of the cases but giving unexpected output for few of them.
raw CEF message :-
CEF:0|Himanshu Arora|Sample1|10.5.011|195|Process Sample|5|abc=Sample Data suser=XY fname= dvc= shost=10.1.1.1 dhost= duser= externalId= app= reason= cs1Label=Affected User cs1= cs2Label=Safe Name cs2=Notification Sample cs3Label=Device Sample cs3= cs4Label=Database cs4= cs5Label="Other info" cs5= cn1Label=Request Id cn1= cn2Label=Ticket Id cn2= msg=
JSON output :-
{
"EventReceivedTime": "2019-04-25T13:43:49.483942+05:30",
"SourceModuleName": "cef_input",
"SourceModuleType": "im_file",
"SyslogFacilityValue": 1,
"SyslogFacility": "USER",
"SyslogSeverityValue": 5,
"SyslogSeverity": "NOTICE",
"SeverityValue": 3,
"Severity": "WARNING",
"EventTime": "2019-04-25T13:43:49.483969+05:30",
"Hostname": "himanshu-VirtualBox",
"SourceName": "CEF",
"CEFVersion": 0,
"CEFDeviceVendor": "Himanshu Arora",
"CEFDeviceProduct": "Sample1",
"CEFDeviceVersion": "10.5.011",
"CEFSignatureID": "195",
"CEFName": "Process Sample",
"CEFSeverity": 5,
"abc": "Sample Data",
"suser": "XY",
"fname": "dvc=",
"shost": "10.1.1.1",
"dhost": "duser="
}
If you notice the raw message has some fields called cs1Label,cs2Label,cs2,cn1Label,cn2Label, cn2 . these fields are missing in the JSON output file. Moreover in JSON the fields "fname" , "dhost" should have had empty value.
I would like to know
- If this issue exists only in the enterprise trial edition and it will be resolved if we purchase the Enterprise edition ? or is it issue being fixed and will be released soon?
- Is there a way to include any third party libraries into NXLOG that can convert CEF to JSON.