Hello,
I am using Field Extraction to extract TWO (2) columns in a given unstructured log file.
//this is a snippet.
04/07/15 23:55:09
Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await svctm %util
a1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
a10 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
a11 0.00 3.00 0.00 2.00 0.00 20.00 20.00 0.00 1.00 0.50 0.10
a2 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
a20 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
a21 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
...
If I were to extract to columns, I would need to highlight the columns. I was wondering if I manually write my reg-ex , Will I be able to extract entire column instead of rows?
I would appreciate your help, especially I'm very curious how reg-ex works in this sense, if anybody knows.
Thank you for your time,
Jack
For ad-hoc extraction, use this:
index=foo sourcetype=bar | multikv
For storing that in your config, set KV_MODE = multi
for that sourcetype in props.conf.