Splunk Enterprise Security

multiple tag eval

metahaxorus
New Member

Hi I am creating a rule in enterprise security and am trying to use multiple tags.
| eval tag="prod_alert" and
| eval tag="risk_information"

What happens is every time the search runs the second tag overwrites the first tag. What do I need to do differently to use multiple tags in a rule?

Labels (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

I've never seen tags set at search time. Typically, they're tested at search time using (tag=prod_alert AND tag=risk_information, for example.
Setting tags usually is done via eventtypes, but not a search time.

---
If this reply helps you, Karma would be appreciated.
0 Karma

metahaxorus
New Member

Thank you for your comment it made me realize I was going in the wrong direction.

I didn't' need a tag. Instead, I made a search macro and set prod_alert=1 which allows me to search that field.

0 Karma
Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Dynamic formatting from XML events

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

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...