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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Introducing Splunk 10.0: Smarter, Faster, and More Powerful Than Ever

Now On Demand Whether you're managing complex deployments or looking to future-proof your data ...

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...