Dashboards & Visualizations

How to display the date and time of the first and last event of a single value on a dashboard?

Matthias_BY
Communicator

Hello,

i want to nicely display the date + time of the first and last event on a dashboard.

for this i used:

head 1 | table _time
tail 1 | table _time

if i format it as single value it's not displayed nice on the dashboard. Is there a trick available to display it nicely on the dashboard as single value (i do not want to display it in a table)

alt text

thx a lot
matthias

0 Karma

DerekKing
Path Finder

Hi,

I believe you can change the time format using either,
convert ctime(fieldname),
http://docs.splunk.com/Documentation/Splunk/6.1.3/SearchReference/Convert

or

fieldformat "fieldname"=strftime('fieldname', "%c")
http://docs.splunk.com/Documentation/Splunk/6.1.3/SearchReference/Fieldformat

Hope this helps
Derek

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...