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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...