Dashboards & Visualizations

Is there a way to show the time range in my PDF report?

kualo
Explorer

Hi

I have a dashboard and I schedule the pdf delivery.
I would like to know if there is anyway to show the time range in my report?
It will be better to show the time range of each visualization.

gcusello
SplunkTrust
SplunkTrust

Hi kualo,
you could insert in the top of the dashboard two single panels with two searches like these:

your_search | stats earliest(_time) AS earliest | eval earliest=strftime(earliest,"%d/%m/%Y %H.%M.%S")  

your_search | stats latest(_time) AS latest | eval latest=strftime(latest,"%d/%m/%Y %H.%M.%S") 

Bye.
Giuseppe

0 Karma

gokadroid
Motivator

One way could be to use the tokens to set the time duration as the panel title of visualization, which will represent the start and end time of search. If all the panels refer to same time picker then it can be achieved as:

<eval token="from">strftime($yourTimePickerToken.earliest$,"%m/%d/%y")</eval>
<eval token="to">strftime($yourTimePickerToken.latest$, "%m/%d/%y")</eval>

and then later on in titles use the $from$ and $to$

<title>My Title stats -  $from$ to $to$</title>

See more on eval in dashboard here

0 Karma

Graham_Hanningt
Builder

Further to this answer, see the answers to the related question (among others), "Display date/Time range in Dashbaord" (sic).

0 Karma

TonyLeeVT
Builder

Is it possible to do this in a scheduled report?

0 Karma
Get Updates on the Splunk Community!

CX Day is Coming!

Customer Experience (CX) Day is on October 7th!! We're so excited to bring back another day full of wonderful ...

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...