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!

Announcing Scheduled Export GA for Dashboard Studio

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

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...