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
*NEW* Splunk Love Promo!
Snag a $25 Visa Gift Card for Giving Your Review!

It's another Splunk Love Special! For a limited time, you can review one of our select Splunk products through Gartner Peer Insights and receive a $25 Visa gift card!

Review:





Or Learn More in Our Blog >>