Dashboards & Visualizations

How to use 2 timepickers in splunk dashboard query

New Member

I have a dashboard query where I am comparing some stats between 2 different dates. I am able to use one time picker but not sure how to remove - (earliest=1587963600 latest=1588050000) and take it as a paramerter from timepicker.

 source=table1 (earliest=1587963600 latest=1588050000)
    | JOIN type=inner id 
    [ SEARCH source=table1  
    | rename user_id AS id ] </query>
0 Karma

Ultra Champion
<query>source=table1 | rename user_id AS id | eval flag="current"
| append [ search source=table1 (earliest=1587963600 latest=1588050000) 
| eval flag="before" ]
| stats AsYouLike by id </query>

I don't have accurate information, so this is about it.

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