Splunk Search

How to show comparison graph of jenkins pipelines steps between two builds

khandelwaly
Explorer

Hi Team,

I want to show comparison graph of jenkins pipeline steps between two jenkins build. How can i get it?
i am able to get the table with all duration, stage name with following queries.

index="jenkins_statistics" (host=jenkins.com/test) event_tag=job_event type=completed "stages{}.name"="" "stages{}.children{}.exec_node"="" |rename stages{}.duration as stageduration | rename stages{}.name as stageName | rename "stages{}.children{}.exec_node" as pipeline_nodes| eval exec_nodes=mvdedup(pipeline_nodes)
| eval build_on_node=coalesce(exec_nodes, node) | table build_on_node, job_name, stageName, stageduration

0 Karma

to4kawa
Ultra Champion
index="jenkins_statistics" (host=jenkins.com/test) event_tag=job_event type=completed "stages{}.name"="" "stages{}.children{}.exec_node"="" 
| rename stages{}.duration as stageduration 
| rename stages{}.name as stageName 
| rename "stages{}.children{}.exec_node" as pipeline_nodes 
| eval exec_nodes=mvdedup(pipeline_nodes) 
| eval build_on_node=coalesce(exec_nodes, node) 
| table build_on_node, job_name, stageName, stageduration
| eval stage=build_on_node."_".job_name."_".stageName
| chart sum(stageduration) as stageduration by stage

| table build_on_node, job_name, stageName, stageduration
If you provide the results, we could create query.

0 Karma
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...