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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...