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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...