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
Get Updates on the Splunk Community!

Operationalizing TDIR: Building a More Resilient, Scalable SOC

Optimizing SOC workflows with a unified, risk-based approach to Threat Detection, Investigation, and Response ...

Pro Tips for First-Time .conf Attendees: Advice from SplunkTrust

Heading to your first .Conf? You’re in for an unforgettable ride — learning, networking, swag collecting, ...

Raise Your Skills at the .conf25 Builder Bar: Your Splunk Developer Destination

Calling all Splunk developers, custom SPL builders, dashboarders, and Splunkbase app creators – the Builder ...