Dashboards & Visualizations

How to get today's date to display on top of a dashboard?

splunker9999
Path Finder

Hi,

Can someone suggest how we can get today's date to display on top of the dashboard?

Format should be like this below:

"date is updated as of Today(todays date)"

Thanks.

0 Karma

sundareshr
Legend

You can use a singlevalue panel to display. Like this

| gentimes start=-1 | eval t="Today (".strftime(starttime, "%m/%d/%Y %I:%M:%S %p").")"
0 Karma

ryanoconnor
Builder

This may depend on your data, but can you put a Visualization Panel in your Dashboard that simply displays a single value?

Then you could run a search for the most recent event and set the Visualization type to "Single Value"

So if your search was the following:

| eval Date = strftime(_time,"%m/%d/%Y %I:%M:%S %p") | eval text = "date is updated as of Today(".Date.")"| table text

All you would display in that specific panel was something like date is updated as of Today(06/29/2016 02:53:28 PM)

0 Karma

splunker9999
Path Finder

I am not looking this to display for a specific panel, looking to get this for my entire dashboard below "Title"

0 Karma

ryanoconnor
Builder

What date specifically do you want to be displayed at the top of the panel? Like where would it be sourced from?

0 Karma

ryanoconnor
Builder

If you're trying to get this in the title of a dashboard, you may end up needing to create custom javascript code unfortunately.

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 ...