Splunk Search

How can I make visualizations with time format hh:mm:ss?

auaave
Communicator

Hi,

I have the below statement with the correct statistics output. However my visualization is empty. But when I use the duration in numbers, it does create charts.

| dedup IDEVENT
| stats sum(DURATION) AS "S_DURATION" BY DESCRIPTION
| eval field_in_hhmmss=tostring(S_DURATION, "duration")
| rename field_in_hhmmss as "DURATION_MIN"
| sort - DURATION_MIN LIMIT=10
| fields - S_DURATION

0 Karma

DalJeanis
SplunkTrust
SplunkTrust

Normally, when calculated from epoch time, duration would start as a number in seconds rather than minutes. Verify your calculations.

Suggestions:

Calculate the duration in minutes and chart that number.

Calculate the duration in HH:MM:SS format and append that to each DESCRIPTION.

Put an alternate Y axis on the right, called out in hours.

0 Karma

niketn
Legend

@auaave statistical chart looks for numeric value to be plotted on y-axis. In case you want to plot duration, you should be trying out Timeline Custom Visualization: https://splunkbase.splunk.com/app/3120/

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
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 ...