Splunk Search

How to parse and extract unstructured .log file data in Splunk?

minkyuk
Explorer
04/07/15 23:55:01
Device:    a      b      c      d      e       f      g      h      i      j      k
1ppd       0.00   0.00   0.00   0.00   0.00    0.00   0.00   0.00   0.00   0.00   0.00
2ppc       0.00   0.00   0.00   0.00   0.00    0.00   0.00   0.00   0.00   0.00   0.00
3ppb       0.00   5.00   0.00   1.00   0.00    24.00  41.00  0.00   2.00   1.00   0.80

It's a .log file, so it's not so structured hence uncommon to be parsed.
However, I'm desperately looking for ways to extract, say, column j and k from this log file and table it using Splunk.
I would appreciate any kind of input.

Thank you in advance,
Best,
Jack

martin_mueller
SplunkTrust
SplunkTrust

multikv has been developed for this kind of table-ish source: http://docs.splunk.com/Documentation/Splunk/6.2.3/SearchReference/multikv

base search | multikv | ...

rkent
Explorer

Well, I think semantically I'd argue that this data is indeed structured. That said, more detail is probably needed on the nature of what the row headings (1ppd, 1ppc, etc) and values (0.00, 5.00) represent before we can decide how best to parse this data.

0 Karma

sk314
Builder

Have you tried reading up on Field Extractions in Splunk?
Ref: http://docs.splunk.com/Documentation/Splunk/6.2.3/Knowledge/ExtractfieldsinteractivelywithIFX

You can also specify transforms for your data ( transforms.conf + props.conf)
Ref: http://docs.splunk.com/Documentation/Splunk/6.2.3/Knowledge/Createandmaintainsearch-timefieldextract...

Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

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

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...