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!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...