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!

[Puzzles] Solve, Learn, Repeat: Dynamic formatting from XML events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  &#x1f680; Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...