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 | What is broken 80% of the time by February?

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

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...

Splunk MCP & Agentic AI: Machine Data Without Limits

Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization uses ...