Splunk Search

Dashboard Studio display time range in markdown

Wooly
Explorer

Using Splunk Enterprise 9.4

I have created a data source name TimeRange with the SPL Query:

| makeresults
| addinfo
| eval t1=strftime(info_min_time,"%Y-%m-%d %H:%M")
| eval t2=strftime(info_max_time,"%Y-%m-%d %H:%M")
| table t1, t2

 

I have created a Markdown panel with content 

**Last Updated:** $LastUpdatedBaseSearch:result.friendlyTime$ **[$BaseSearch:job.status$]**

**Time Range:** $TimeRange.t1$ to $TimeRange.t2$

 

For some reason the range is not showing

Wooly_0-1757375953688.png

I did just notice that the Data Source says unused.  So is it not being run when the Dashboard is refreshed?  All my other charts use a chain search with the BaseSearch as their parent.

Wooly_1-1757376125875.png

 

Labels (1)
0 Karma
1 Solution

Wooly
Explorer

Sorry folks, I just figured it out.

Change the Markdown to:

**Last Updated:** $LastUpdatedBaseSearch:result.friendlyTime$ **[$BaseSearch:job.status$]**

**Time Range:** $TimeRange:result.t1$ to $TimeRange:result.t2$

Also I check the checkbox for the TimeRange search to Access search results or metadata

View solution in original post

0 Karma

Wooly
Explorer

Sorry folks, I just figured it out.

Change the Markdown to:

**Last Updated:** $LastUpdatedBaseSearch:result.friendlyTime$ **[$BaseSearch:job.status$]**

**Time Range:** $TimeRange:result.t1$ to $TimeRange:result.t2$

Also I check the checkbox for the TimeRange search to Access search results or metadata

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...