Getting Data In

How do I remove all double quotes from splunk data?

tamduong16
Contributor

My data read into splunk with all double quote around them. How can I delete all of these double quotes from splunk?
This is the data:
alt text

0 Karma

DalJeanis
Legend

You would have to delete the data, correct your upload process to omit the quotes, and then er-index the data.

0 Karma

mdsnmss
SplunkTrust
SplunkTrust

I'm not sure about getting rid of them in raw before indexing but if you are looking for search time field extractions without quotes I'd use props.conf and transforms.conf to achieve this.

Props.conf

[<sourcetype/spec>]
REPORT-extract_quotes = extract_quotes

Transforms.conf

[extract_quotes]
REGEX = [a-zA-Z0-9_]*"(.*?)"
FORMAT = $1::$2

This should extract your fields to be without quotes when searching.

0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...