I achieved this with Label .I used javascript with simple xml and for customization I used CSS.
I achieved this with Label .I used javascript with simple xml and for customization I used CSS.
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.
@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..