Splunk Search

Need help using tag in a query

toporagno
Explorer

HI

 If I replace, for example, src=10.0.0.1 with my tag containing src=10.0.0.1 in the query, it doesn't work. Please help.

Labels (1)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @toporagno ,

let me understand:

  • you have an eventtyle like "index=my_index src=10.0.0.1" that tags these events with a tag like "MY_TAG",
  • you have a search that uses the above src and it runs,
  • you want to replace the condition "src=10.0.0.1" with the condition tag=MY_TAG,
  • and it doesn't run,
  • is it correct?

If this is your use case, as also @ITWhisperer asked, the first thing is sharing the search and the eventtype associated to the tag.

Then, tag is the only field case sensitive, are you sure that the tag value is correct?

Second check: did you tried to replace the condition "src=10.0.0.1" with the eventtype associated to the tag? maybe the two conditions aren't compatible.

Ciao.

Giuseppe

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Please provide more details, for example, what do you mean by tag? how do you set it up? how do you use it in your search? in what way doesn't it work? do you have any errors reported? etc.

0 Karma
Get Updates on the Splunk Community!

Technical Workshop Series: Splunk Data Management and SPL2 | Register here!

Hey, Splunk Community! Ready to take your data management skills to the next level? Join us for a 3-part ...

Spotting Financial Fraud in the Haystack: A Guide to Behavioral Analytics with Splunk

In today's digital financial ecosystem, security teams face an unprecedented challenge. The sheer volume of ...

Solve Problems Faster with New, Smarter AI and Integrations in Splunk Observability

Solve Problems Faster with New, Smarter AI and Integrations in Splunk Observability As businesses scale ...