I'm importing tab-delimited files formatted as the following. The space is tab.
"field1 field2 field3 field4"
The files are imported with command "splunk add oneshot " and parsed with the following definition in transforms.conf.
DELIMS = "\t"
FIELDS = "field_name1","field_name2","field_name3","field_name4"
It works fine but for some line the value goes into wrong field name. It took me a lot of time to find the reason. I found that if a field ends with '\', it will be combined with its next field.
For example, "field1 field2\ field3 field4" will be parsed as
field_name1=field1
field_name2=field2\ field3
field_name3=field4
field_name4=
If I remove all ending '\' it will work fine. But I have to import the original data as is. Is there any way to import field end with '\'?
... View more