Splunk Search

Field Extraction: Highlighting columns instead of rows?

minkyuk
Explorer

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

Tags (1)
0 Karma

martin_mueller
SplunkTrust
SplunkTrust

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.

0 Karma
Get Updates on the Splunk Community!

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...