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, Karma 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!

Aligning Observability Costs with Business Value: Practical Strategies

 Join us for an engaging Tech Talk on Aligning Observability Costs with Business Value: Practical ...

Mastering Data Pipelines: Unlocking Value with Splunk

 In today's AI-driven world, organizations must balance the challenges of managing the explosion of data with ...

Splunk Up Your Game: Why It's Time to Embrace Python 3.9+ and OpenSSL 3.0

Did you know that for Splunk Enterprise 9.4, Python 3.9 is the default interpreter? This shift is not just a ...