Dashboards & Visualizations

Display selected time range from default dashboard picker

ErikaE
Communicator

I'd like to save the earliest time and latest time from a selection on the default dashboard time picker. When a user of the dashboard selects a Date&Time range I'd like to display that date and time range on the dashboard for clarity.

Best case would be putting that token in a title, second best would be adding a single value to display it.

Any suggestions? I tried using the token $field1$ but the search wouldn't run.

Tags (2)
0 Karma

somesoni2
Revered Legend

You can use following search to get the current selected time-range picker value.

|gentimes start=-1 | addinfo | convert ctime(*) | eval message="Total failed attempts ".info_min_time." to ".info_max_time | table message

Now you can run this search as a single value panel OR run as separate search element and setup tokens with value from the results (and then use the token in your title/label).
http://docs.splunk.com/Documentation/Splunk/6.5.1/Viz/tokens#Search_tokens_for_dynamic_display_examp...

Get Updates on the Splunk Community!

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

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

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...