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!

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  &#x1f680; Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...

Data Management Digest – November 2025

  Welcome to the inaugural edition of Data Management Digest! As your trusted partner in data innovation, the ...