Getting Data In

date and time in app header

vikas_gopal
Builder

Hello Everyone,

Please suggest how to show current date and time in a text box in app header or if we can show it in a label even that is fine .I want to place it at the right hand side of app bar so that it is visible to the user.

Tags (2)
0 Karma
1 Solution

vikas_gopal
Builder

I achieved this with Label .I used javascript with simple xml and for customization I used CSS.

View solution in original post

0 Karma

vikas_gopal
Builder

I achieved this with Label .I used javascript with simple xml and for customization I used CSS.

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

The most out-of-the-box way would be to create a panel with single value visualization for this search:

| stats c as _time | eval _time = now()

There are loads of other ways though.

In case you want a self-updating timer you can get that out of the box like so:

sourcetype=nonexistant | stats c as _time | eval _time = time()

It'd be much more efficient to write a small piece of javascript for this though, running a realtime search for this feels a bit wasteful despite never matching anything.

vikas_gopal
Builder

@martin_mueller Thanks for the reply ..
It's fine with single value but I want to show time in the header for example my dashboard heading is monthly status report and I want to display it as monthly status report (date and time)...please suggest how to do it..

0 Karma
Get Updates on the Splunk Community!

Demo Day: Strengthen Your SOC with Splunk Enterprise Security 8.1

Today’s threat landscape is more complex than ever. Security operation centers (SOCs) are overwhelmed with ...

Dashboards: Hiding charts while search is being executed and other uses for tokens

There are a couple of features of SimpleXML / Classic dashboards that can be used to enhance the user ...

Splunk Observability Cloud's AI Assistant in Action Series: Explaining Metrics and ...

This is the fourth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how ...