Splunk Search

Line chart with different events

Kaviyap
New Member

I have a splunk log in following format:

||pool-2-thread-1|| INFO  SUCCESSFULLY COMPLETED at END_TIME: 2018-05-07T06:05:17.475Z 

||pool-2-thread-1|| INFO ACTIVE at START_TIME: 2018-05-07T06:04:44.981Z 

||pool-2-thread-1|| INFO SUCCESSFULLY COMPLETED at END_TIME: 2018-05-09T07:10:17.475Z 

||pool-2-thread-1|| INFO ACTIVE at START_TIME: 2018-05-09T07:08:44.981Z 

all the above are separate events. Now I want to get the start date and end date as follows:

startDate                                    Enddate
-------------------------------------------------------
 2018-05-09T07:08:44.981Z   2018-05-09T07:10:17.475Z
2018-05-07T06:04:44.981Z    2018-05-07T06:05:17.475Z 

and I need to draw a timechart with the data. Am new to the splunk, can anyone please suggest me how can I do it.

0 Karma

woodcock
Esteemed Legend

To do what Splunk calls timechart, you only need 1 value. What do you mean by timechart and why do you need both values?

0 Karma

xpac
SplunkTrust
SplunkTrust

Are these events always in the right order, e.g. start, end, start, end, etc?

0 Karma
Get Updates on the Splunk Community!

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...