Importing csv file and converting to syslog and sending to log server
The number of fields in the Fields
directive do not match the number in the source data.
The source looks to have about 33 lines of generic text and then it seems there are multiple Incidents on that same line.
It appears as if every Incident is preceded by "SecurityIncident" and includes about 32 fields.
This is unless what you pasted in is supposed to be on 5 lines? (my suspicion)
Top row being the definition with "Type","RowID", ...
and the following lines starting with "SecurityIncident"
each.
If this is the case then you will want to ignore the definition line by something similar to the Example 323. Collecting W3C Format Logs With xm_csv
example in the NXLog EE Manual.
Before the parse_csv()
line it would be something like if $raw_event =~ /^"Type","RowID".*/ drop();
That would leave you with only actual events to parse.