Knowledge Management

Splunk Extract Command to process single or double quotes

youngc_splunk
Splunk Employee
Splunk Employee

Hello Gurus!

I am sure some people may have run in to this.   I am using extract command to parse fields from multi line unstructured event, but the data values are encapsulated by single quotes.

Here is the example :

====EVENT 1========

2021-09-08 00:00:00 ABC status - performance event
    name : 'James Bond'
    address : 'USA'
    age : '100'
    occupation : 'spy'
performance event END

==================

So the the following event, I am using transforms to 

transforms.conf

[performance_data]
DELIMS = "\r\n", ":"

So above transforms partially works.  The problem is the values has single quote ' encapsulated.

Like this

Field name "name"  with value "'James Bond'".   single quote included.  How can I get rid of the single quote?

Labels (1)
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 ...