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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Index This | What travels the world but is also stuck in place?

April 2026 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Discover New Use Cases: Unlock Greater Value from Your Existing Splunk Data

Realizing the full potential of your Splunk investment requires more than just understanding current usage; it ...

Continue Your Journey: Join Session 2 of the Data Management and Federation Bootcamp ...

As data volumes continue to grow and environments become more distributed, managing and optimizing data ...