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!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

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