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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...