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!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...