Splunk Search

Saving the top value of a search to use in a separate search.

tomscott21
Engager

I am trying to save the top 1 value of a field from a search to a variable. I then want to use this value to input into a separate search.

Tags (2)
0 Karma

nickhills
Ultra Champion

There are several approaches to this.
Can you share samples of both queries, so members can suggest the most appropriate solution?
Do you want to run these queries "at (almost) the same time", or are you looking to run the first search once an hour/day/week etc and the second more frequently?

If my comment helps, please give it a thumbs up!
0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...