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!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI! Discover how Splunk’s agentic AI ...

[Puzzles] Solve, Learn, Repeat: Dereferencing XML to Fixed-length events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Stay Connected: Your Guide to December Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...