Splunk Search

How to show duration in column chart by filed

dyapasrikanth
Path Finder

Here is my query

 

| search "Some operation:*"
| rex field=message "Some operation: (?<operation>\w+), .* for correlationId: (?<correlationid>.*)"
| reverse 
| stats first(_time) as Start, last(_time) as End by correlationid, operation
| eval time=_time
| eval duration=End-Start

 

 

I am getting table of data like

correlationid, operation, start, end, duration

09360e85-c4af-4e1e-896a-be626c1a9cddDRAFT1619423349.8421619423350.0100.168
0957aa55-7c43-4a74-b50b-2b7f904cdf15QUEUE_FOR_SUBMISSION1619427837.1691619427837.2710.102



I want to show a bar chart with time (start time) in x-axis, and a bar for each operation duration.

How can I do that ?

Labels (2)
Tags (1)
0 Karma
Get Updates on the Splunk Community!

Fall Into Learning with New Splunk Education Courses

Every month, Splunk Education releases new courses to help you branch out, strengthen your data science roots, ...

Super Optimize your Splunk Stats Searches: Unlocking the Power of tstats, TERM, and ...

By Martin Hettervik, Senior Consultant and Team Leader at Accelerate at Iver, Splunk MVPThe stats command is ...

How Splunk Observability Cloud Prevented a Major Payment Crisis in Minutes

Your bank's payment processing system is humming along during a busy afternoon, handling millions in hourly ...