Splunk Search

how to fetch the key values from double pipe separator

iamlucky92
Observer

Hi Team,

I am having a logging with double pipe separator (||)  and need to get the key values from logs. 

Log pattern:-

logs ........|ab-c=1234||xy-z=1598||cd-e=5ab4||....more logs

Need to fetch table to with values of (ab-c,xy-z,cd-e). 

Till now i tried 

search | dedup ab-c, cd-e,xy-z | table ab-c, xy-z, cd-e  

but its not working. Please suggest

 

Labels (1)
0 Karma

rnowitzki
Builder

Hi @iamlucky92 ,

I added a file with your sample line in it to my lab.
The fields and values were extracted automatically, without any regex or conf file manipulation.

The automatic key value field extraction worked just fine.

How is this data coming in on your side?   Could you share the props.conf that deals with it?
Also an example of the whole event would be helpfull. 

BR
Ralph

--
Karma and/or Solution tagging appreciated.
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...