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!

CX Day is Coming!

Customer Experience (CX) Day is on October 7th!! We're so excited to bring back another day full of wonderful ...

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...