Splunk Search

addterm operator

lain179
Communicator

How can I use the addterm intention to search for two fields with an OR? So in this case, I want to search or source="ABC" OR server="ABC" into my xml hidden search.

<param name="arg">
<param name="source">*$target$*</param>
<param name="server">$target$</param>
</param>

thanks!

Tags (2)

sideview
SplunkTrust
SplunkTrust

I'm pretty sure that this can not be done with the addterm intention.

You would have to use a stringreplace intention, or switch to using Sideview Utils and thus no intentions at all.

0 Karma

lain179
Communicator

can I have example of stringreplace intention to use in my case? Thanks.

0 Karma
Get Updates on the Splunk Community!

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...