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!

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 ...