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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Casting Call: Compete in Cyber Games

Lights, Camera, SecOps: Apply to Compete in Cyber Games     Think you have what it takes to beat the clock? ...

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

How Edge Processor's Durable Queue Works

Edge Processor sits in one of the most consequential places in any Splunk pipeline: between your data sources ...