Hi there, I’m having a problem with a simple parser acting on a csv file. my problem appears when there is an empty field and a “,” in the source log.
I’ve simplified the log below to attempt to easily demonstrate my issue.
2024-01-11T13:23:02.578Z,192.168.0.100,Server1,Test,Test,CatContentConversion
2024-01-11T13:24:06.345Z,192.168.0.103,Server2,Test,Test,Alert
2024-01-11T13:27:04.543Z,192.168.0.103,Server2,Test,Alert
2024-01-11T13:28:03.345Z,192.168.0.178,Server5,Tree,Bannana
This is my Parse in DPL architect
JSONTIMESTAMP:timestamp
‘,’
IPV4ADDR:field1
‘,’
LD:field2
‘,’
LD:field3
‘,’
LD:field4
‘,’
LD:field5
EOF
the 3rd and 4th lines in the log, should have empty values in field3, as it is represented by “,” in the source.
However, what i am finding is that this double comma, seems to corrupt in the parse, and it just skips those records all together.
very odd behaviour. if you insert a character between the commas, it then works fine
Does anyone else parse csv log files and have seen this issue before?
Any pointers would be appreciated, thanks in advance



