Splunk Search

What regex will be needed to remove the double quotes and leave single quotes in place?

JoshuaJohn
Contributor

This populates from a dropdown menu

| search "Application"=""T zone 10.2" OR "Application"="Nitro Run 10.1" OR "Application"="Runner 9.9""

I want to remove the duplicate double quote before T zone 10.2 and after Runner 9.9. I need the single double quote to remain as the app names have spaces.

Any regex ideas? So far mine removes all quotes, which isn't what I want

0 Karma
1 Solution

somesoni2
SplunkTrust
SplunkTrust

Share the dropdown search. You probably need to add a | rex mode=sed... type of statement in your search.

View solution in original post

0 Karma

somesoni2
SplunkTrust
SplunkTrust

Share the dropdown search. You probably need to add a | rex mode=sed... type of statement in your search.

0 Karma

JoshuaJohn
Contributor

That is exactly, what I did. Worked perfectly! Thank you.

0 Karma

cpetterborg
SplunkTrust
SplunkTrust

Am I missing something, or do you need this to be generated somehow? Why can't you just use the backspace key to remove the quotes that you don't want? There doesn't seem to be enough information here to answer you question.

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

Splunk is officially part of Cisco

Revolutionizing how our customers build resilience across their entire digital footprint.   Splunk ...

Splunk APM & RUM | Planned Maintenance March 26 - March 28, 2024

There will be planned maintenance for Splunk APM and RUM between March 26, 2024 and March 28, 2024 as ...