I'm writing an app that's based on a scripted input, and I'm trying to just dump out my key value pairs so the field extraction will be handled by autoKV.
someField=bar someOtherField=12.4
Some of my field values can have space characters in them, but that's OK -- if you dig around in the docs the answer for that is to wrap the values in quotes and then autoKV will be tolerant of space characters:
someField="foo bar" someOtherField="12.4"
However if the field values also contain quote characters, I dont think there's any way to get autoKV to index the value correctly.
eg: someField="foo \" bar"
results a field value of "foo \"
.
I had hoped that autoKV would be smart enough to extract it as foo " bar
, or failing that, as 'foo \" bar'
Any ideas, or do I have to switch to a csv approach?
This is a known issue and we're working on adding support for escape characters within quoted values in for autokv. Should land in our next major release (5.0)
Looks like this can be done using KV_MODE=auto_escaped
in props.conf.
Nick,
I had success w/ turning off KV and using DELIMS.
## props.conf
[<your_sourcetype>]
KV_MODE = none
REPORT-kv_for_your_sourcetype = kv_for_your_sourcetype
## transforms.conf
[kv_for_wookie]
DELIMS = " ", "="
I actually havent been able to get back to working on this particular app. Others have been bumped up in priority. I'll probably be back on this next week though and I'll update then at least.
Nick, were you able to work around this using delims, or other? Having the same issue w/ a scripted input.
Thanks hazedav! I'll be back on this tomorrow and I'll give it a shot then.