Splunk Dev

Remove (quotes) from search command 'format' output

RMurcia
New Member

Hello,

Your assistance is very much appreciated. I am performing a sub search and need the data to be recognized as a single set (statistic). For some reason the quotes are messing with the output on the subsearch.

IE: 

<search><| dedup src_ip | rename src_ip as search | format >   ......results in the following:

( ( "8.8.8.8" ) OR ( "1.1.1.1" ) OR ( "4.4.4.4" ) ) 

and I need the results from to be :

( ( 8.8.8.8 ) OR ( 1.1.1.1 ) OR ( 4.4.4.4 ) )

Thank you in advanced. 

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
| eval search=replace(search, "\"", "")

RMurcia
New Member

Thank you very much. That did it! My approach was by regex and was not having any luck. 

0 Karma
Get Updates on the Splunk Community!

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

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

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...