Alerting

Use of dynamic values in an alert

schiwark
Explorer

Is it possible to store dynamic field values in a variable and later reuse it in the same search string in the subsearch? 

I want to built this search string for an alert.

Can someone help me out on this?

Labels (1)
Tags (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust
Subsearches run first so anything defined in the main search would not yet exist when the subsearch runs.

Can you explain more about what you are trying to do? Perhaps there is another way to do it.
---
If this reply helps you, an upvote would be appreciated.
0 Karma

schiwark
Explorer

I am trying to create an alert where I want to build a query which will have two searches having different time ranges where result of first search should be identical with the result of second search. Here result is the field value.

How can I achieve this? 

0 Karma

schiwark
Explorer

Both the searches should be present in single search string. It will be a great help if you provide me some sample search strings.

0 Karma
Get Updates on the Splunk Community!

Improve Your Security Posture

Watch NowImprove Your Security PostureCustomers are at the center of everything we do at Splunk and security ...

Maximize the Value from Microsoft Defender with Splunk

 Watch NowJoin Splunk and Sens Consulting for this Security Edition Tech TalkWho should attend:  Security ...

This Week's Community Digest - Splunk Community Happenings [6.27.22]

Get the latest news and updates from the Splunk Community here! News From Splunk Answers ✍️ Splunk Answers is ...