Splunk Search

Using a different time picker on an inner query

ShagVT
Path Finder

I'm working on dashboard in which I would like to compare data across two different time periods.  (I posted a previous question here: https://community.splunk.com/t5/Splunk-Search/Compare-percentages-with-a-week-ago/m-p/513799#M144200)

I would like to have two time pickers on my dashboard.  The first would be for time period 1 and the second would be for time period 2.  I have much of this worked out conceptually ... but I don't see how to have the second time picker work for the inner query.    In its simplest form it would look something like this:

<base query>

| append [search <base query> $timePicker2$]

| <collate data>

The question is how to make that timePicker2 actually work.  I have this working with just a dropdown that includes a handful of preset values like earliest=-169h@h latest=-168h@h to be "same hour last week"  but if i wanted to make it more flexible with a time picker, I don't understand how to make that work.

Tags (2)
0 Karma

isoutamo
SplunkTrust
SplunkTrust
0 Karma

ShagVT
Path Finder

@isoutamo - thanks for the link.  I don't see how to make that work.  How would I connect the time picker only to the inner search?  In that example, it looks like there are two separate queries in which the entire query is driven by its own picker, so I think that is solving a different problem.

0 Karma
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...