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!

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

A Guide To Cloud Migration Success

As enterprises’ rapid expansion to the cloud continues, IT leaders are continuously looking for ways to focus ...