Splunk Search

Field Extraction

ReachDataScient
Explorer

If the event has field names and values both separated by pipe, how to do field extraction.

Field1|Value1|Field2|Value2|Field3|Value3...........

0 Karma

anjambha
Communicator

Hi,

Try This run search anywhere

| makeresults | eval data="Field1|Value1|Field2|Value2|" | rex field=data "Field1\|(?<Field1>\w+)\|Field2\|(?<Field2>\w+)\|"

or

base search |  rex field=data "Field1\|(?<Field1>\w+)\|Field2\|(?<Field2>\w+)\|"
0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

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