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!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...