Dashboards & Visualizations

How do I display the current date (month and year) in the title of a dashboard?

chris_thuys
Path Finder

How can I display the current month and year ie "January 2015" in the title of a dashboard, ( not the search date)

Tags (4)
0 Karma

risgupta
Path Finder

/code
| makeresults
| eval prevWeekDate=strftime((now(),"-7d"),"%Y/%m/%d")
| table prevWeekDate
1

$result.prevWeekDate$

0 Karma

lguinn2
Legend

Ah, this requires a trick or two. You can't really put the date in a heading, but you could create a single value panel at the top of the dashboard, and this single value panel could contain the following search:

index=main | head 1 | eval month_year=strftime(now(),"%B %Y") | table month_year

Actually, I'll bet that you can put the data in a heading, if you write some javascript etc. I think the above method is pretty simple.

0 Karma

chris_thuys
Path Finder

Thanks for that. I'll try it out.

0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

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