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
Get Updates on the Splunk Community!

Developer Spotlight with Paul Stout

Welcome to our very first developer spotlight release series where we'll feature some awesome Splunk ...

State of Splunk Careers 2024: Maximizing Career Outcomes and the Continued Value of ...

For the past four years, Splunk has partnered with Enterprise Strategy Group to conduct a survey that gauges ...

Data-Driven Success: Splunk & Financial Services

Splunk streamlines the process of extracting insights from large volumes of data. In this fast-paced world, ...