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
Revered Legend

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
Revered Legend

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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...