Splunk Search

How to create a Time Chart for duration?

Talking_Master
Explorer

Hi looking to create a time chart that has duration on the y axis and start date on the x-axis. The Y- axis is in hours and the x-axis is the start dates for the last ten days.   

I am new to Splunk so don't really know to do it. 

Labels (2)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

What have you tried so far?

Assuming you have calculated the duration field already, you can use the timechart command to create the chart.

<<your search for duration>>
| timechart span=1d max(duration) as duration
---
If this reply helps you, Karma would be appreciated.

View solution in original post

0 Karma

richgalloway
SplunkTrust
SplunkTrust

What have you tried so far?

Assuming you have calculated the duration field already, you can use the timechart command to create the chart.

<<your search for duration>>
| timechart span=1d max(duration) as duration
---
If this reply helps you, Karma would be appreciated.
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...