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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...