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!

Index This | Why did the turkey cross the road?

November 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  &#x1f680; Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...