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!

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...

Adoption of Infrastructure Monitoring at Splunk

  Splunk's Growth Engineering team showcases one of their first Splunk product adoption-Splunk Infrastructure ...

Modern way of developing distributed application using OTel

Recently, I had the opportunity to work on a complex microservice using Spring boot and Quarkus to develop a ...