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!

SplunkTrust Application Period is Officially OPEN!

It's that time, folks! The application/nomination period for the 2025 SplunkTrust is officially open! If you ...

Splunk Answers Content Calendar, June Edition II

Get ready to dive into Splunk Dashboard panels this week! We'll be tackling common questions around ...

Splunk Observability Cloud's AI Assistant in Action Series: Auditing Compliance and ...

This is the third post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how to ...