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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...