# Can we Visualize Jenkins stages through Kibana?

**URL:** <https://discuss.elastic.co/t/can-we-visualize-jenkins-stages-through-kibana/281974>\
**Category:** Kibana\
**Created:** [August 19, 2021, 1:42pm UTC](https://discuss.elastic.co/t/can-we-visualize-jenkins-stages-through-kibana/281974 "2021-08-19T13:42:21Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harindra\_Balanagired](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harindra_balanagired/32/92577_2.png) [@Harindra\_Balanagired](https://discuss.elastic.co/u/Harindra_Balanagired)\
**Post date:** [August 19, 2021, 1:42pm UTC](https://discuss.elastic.co/t/can-we-visualize-jenkins-stages-through-kibana/281974/1 "2021-08-19T13:42:21Z")

</div>

![1](https://us1.discourse-cdn.com/elastic/original/3X/a/4/a4b4dee31249f22a914ef4ae28754f4cdf6324cd.png)  
 ![2](https://us1.discourse-cdn.com/elastic/original/3X/5/a/5a9c23d1fc200f4b27bcb053ff42914024e6962d.png)  
 ![Capture](https://us1.discourse-cdn.com/elastic/original/3X/3/4/34166168438ae075fbecc1662bf7da5bfe5e4a36.png)

**In Jenkins I have 4 stages for each stage it takes some time to finish you can check on 1st image. I want to visualize the same thing on kibana for each stage run time**

_See the 3rd image stage name empty so in kibana dashboard, I could not find stage names of Jenkins so I'm unable to visualize Jenkins each stage run time_ plsssssssssssssssssss help me..!

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [August 24, 2021, 3:32pm UTC](https://discuss.elastic.co/t/can-we-visualize-jenkins-stages-through-kibana/281974/2 "2021-08-24T15:32:00Z")

</div>

What does your elastic search document look like? Has stage name been isolated in a field? If not, try creating a [runtime field](https://www.elastic.co/guide/en/kibana/current/managing-index-patterns.html#managing-fields) that parses stage name from the message. Then you can create visualizations and use stage name field as a visualization dimension.

---

<div class="post-metadata">

**Author:** ![Harindra\_Balanagired](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harindra_balanagired/32/92577_2.png) [@Harindra\_Balanagired](https://discuss.elastic.co/u/Harindra_Balanagired)\
**Post date:** [August 25, 2021, 9:53am UTC](https://discuss.elastic.co/t/can-we-visualize-jenkins-stages-through-kibana/281974/3 "2021-08-25T09:53:08Z")

</div>

that's a great idea but ok how does it takes time stamp suppose if I create stage names see that 1st image you can see yellow colour highlighted one. i tried to create filed runtime but where I did mistake don not know I'm not getting stage list and stages runtime

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [August 25, 2021, 2:14pm UTC](https://discuss.elastic.co/t/can-we-visualize-jenkins-stages-through-kibana/281974/4 "2021-08-25T14:14:32Z")

</div>

How are you ingesting documents? Maybe you can parse these fields out in with some code.

---

<div class="post-metadata">

**Author:** ![Harindra\_Balanagired](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harindra_balanagired/32/92577_2.png) [@Harindra\_Balanagired](https://discuss.elastic.co/u/Harindra_Balanagired)\
**Post date:** [August 26, 2021, 9:50am UTC](https://discuss.elastic.co/t/can-we-visualize-jenkins-stages-through-kibana/281974/5 "2021-08-26T09:50:55Z")

</div>

**actually, that is not a document those are logs dynamically generated by Jenkins when you trigger Jenkins job. Jenkins stages should be constant but timestamp depends on when we trigger Jenkins for sample log you can see below**

_Checkout\_scm, build, Email_ are my stage names if you observer the below stage I highlited timings, I want to visualize **checkout\_scm** stage taken time (2:29:35.424 to 2:29:36.942) on graph

Started by user harindra  
Running in Durability level: MAX\_SURVIVABILITY  
[Pipeline] Start of Pipeline  
[Pipeline] node  
Running on Jenkins in /var/lib/jenkins/workspace/pipeline  
[Pipeline] {  
[Pipeline] timestamps  
[Pipeline] {  
[Pipeline] stage  
[Pipeline] { **(checkout\_scm)**  
[Pipeline] cleanWs  
[2021-07-22T0 **2:29:35.424** Z] [WS-CLEANUP] Deleting project workspace...  
[2021-07-22T02:29:35.424Z] [WS-CLEANUP] Deferred wipeout is used...  
[2021-07-22T02:29:35.430Z] [WS-CLEANUP] done  
[Pipeline] checkout  
[2021-07-22T02:29:35.448Z] The recommended git tool is: NONE  
[2021-07-22T02:29:35.448Z] Warning: CredentialId "github\_cred" could not be found.  
[2021-07-22T02:29:35.449Z] Cloning the remote Git repository  
[2021-07-22T02:29:35.449Z] Cloning repository [GitHub - hbnreddy/mario-game](https://github.com/hbnreddy/mario-game.git)  
[2021-07-22T02:29:35.453Z] \> git init /var/lib/jenkins/workspace/pipeline # timeout=10  
[2021-07-22T02:29:35.498Z] Fetching upstream changes from [GitHub - hbnreddy/mario-game](https://github.com/hbnreddy/mario-game.git)  
[2021-07-22T02:29:35.498Z] \> git --version # timeout=10  
[2021-07-22T02:29:35.511Z] \> git --version # 'git version 2.25.1'  
[2021-07-22T02:29:35.511Z] \> git fetch --tags --force --progress -- [GitHub - hbnreddy/mario-game](https://github.com/hbnreddy/mario-game.git) +refs/heads/_:refs/remotes/origin/_ # timeout=10  
[2021-07-22T02:29:36.272Z] \> git config remote.origin.url [GitHub - hbnreddy/mario-game](https://github.com/hbnreddy/mario-game.git) # timeout=10  
[2021-07-22T02:29:36.278Z] \> git config --add remote.origin.fetch +refs/heads/_:refs/remotes/origin/_ # timeout=10  
[2021-07-22T02:29:36.295Z] Avoid second fetch  
[2021-07-22T02:29:36.295Z] \> git rev-parse refs/remotes/origin/master^{commit} # timeout=10  
[2021-07-22T02:29:36.308Z] Checking out Revision 43aa9248d0ca1a9c8f6e8488820a67031e72d093 (refs/remotes/origin/master)  
[2021-07-22T02:29:36.308Z] \> git config core.sparsecheckout # timeout=10  
[2021-07-22T02:29:36.315Z] \> git checkout -f 43aa9248d0ca1a9c8f6e8488820a67031e72d093 # timeout=10  
[2021-07-22T02:29:36.349Z] Commit message: "Update pom.xml"  
[2021-07-22T02:29:36.350Z] \> git rev-list --no-walk 8a4e4454ca6aad27f8bb83d3f7f80aed9df816d4 # timeout=10  
[Pipeline] sh  
[2021-07-22T02:29:36.667Z] + touch output.txt  
[Pipeline] sh  
[2021-07-22T0 **2:29:36.942** Z] + ls /var/lib/jenkins/jobs/pipeline/builds  
[Pipeline] }  
[Pipeline] // stage  
[Pipeline] stage  
[Pipeline] { **(build)**  
[Pipeline] sh  
[2021-07-22T0 **2:29:37.278** Z] + mvn package  
[2021-07-22T02:29:40.509Z] [e[1;34mINFOe[m] Scanning for projects...  
[2021-07-22T02:29:40.509Z] [e[1;33mWARNINGe[m]  
[2021-07-22T02:29:40.509Z] [e[1;33mWARNINGe[m] Some problems were encountered while building the effective model for caramelit:app:war:3.0  
[2021-07-22T02:29:40.509Z] [e[1;33mWARNINGe[m] 'build.pluginManagement.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-war-plugin @ line 101, column 16  
[2021-07-22T02:29:40.509Z] [e[1;33mWARNINGe[m]  
[2021-07-22T02:29:40.509Z] [e[1;33mWARNINGe[m] It is highly recommended to fix these problems because they threaten the stability of your build.  
[2021-07-22T02:29:40.509Z] [e[1;33mWARNINGe[m]  
[2021-07-22T02:29:40.509Z] [e[1;33mWARNINGe[m] For this reason, future Maven versions might no longer support building such malformed projects.  
[2021-07-22T02:29:40.509Z] [e[1;33mWARNINGe[m]  
[2021-07-22T02:29:40.509Z] [e[1;34mINFOe[m]  
[2021-07-22T02:29:40.509Z] [e[1;34mINFOe[m] e[1m---------------------------\< e[0;36mcaramelit:appe[0;1m \>----------------------------e[m  
[2021-07-22T02:29:40.509Z] [e[1;34mINFOe[m] e[1mBuilding app Maven Webapp 3.0e[m  
[2021-07-22T02:29:40.509Z] [e[1;34mINFOe[m] e[1m--------------------------------[war]---------------------------------e[m  
[2021-07-22T02:29:42.373Z] [e[1;34mINFOe[m]  
[2021-07-22T02:29:42.373Z] [e[1;34mINFOe[m] e[1m--- e[0;32mmaven-resources-plugin:3.0.2:resourcese[m e[1m(default-resources)e[m @ e[36mappe[0;1m ---e[m  
[2021-07-22T02:29:42.373Z] [e[1;34mINFOe[m] Using 'UTF-8' encoding to copy filtered resources.  
[2021-07-22T02:29:42.373Z] [e[1;34mINFOe[m] skip non existing resourceDirectory /var/lib/jenkins/workspace/pipeline/src/main/resources  
[2021-07-22T02:29:42.373Z] [e[1;34mINFOe[m]  
[2021-07-22T02:29:42.373Z] [e[1;34mINFOe[m] e[1m--- e[0;32mmaven-compiler-plugin:3.8.0:compilee[m e[1m(default-compile)e[m @ e[36mappe[0;1m ---e[m  
[2021-07-22T02:29:42.624Z] [e[1;34mINFOe[m] No sources to compile  
[2021-07-22T02:29:42.624Z] [e[1;34mINFOe[m]  
[2021-07-22T02:29:42.624Z] [e[1;34mINFOe[m] e[1m--- e[0;32mmaven-resources-plugin:3.0.2:testResourcese[m e[1m(default-testResources)e[m @ e[36mappe[0;1m ---e[m  
[2021-07-22T02:29:42.624Z] [e[1;34mINFOe[m] Using 'UTF-8' encoding to copy filtered resources.  
[2021-07-22T02:29:42.624Z] [e[1;34mINFOe[m] skip non existing resourceDirectory /var/lib/jenkins/workspace/pipeline/src/test/resources  
[2021-07-22T02:29:42.624Z] [e[1;34mINFOe[m]  
[2021-07-22T02:29:42.624Z] [e[1;34mINFOe[m] e[1m--- e[0;32mmaven-compiler-plugin:3.8.0:testCompilee[m e[1m(default-testCompile)e[m @ e[36mappe[0;1m ---e[m  
[2021-07-22T02:29:42.624Z] [e[1;34mINFOe[m] No sources to compile  
[2021-07-22T02:29:42.624Z] [e[1;34mINFOe[m]  
[2021-07-22T02:29:42.624Z] [e[1;34mINFOe[m] e[1m--- e[0;32mmaven-surefire-plugin:2.22.1:teste[m e[1m(default-test)e[m @ e[36mappe[0;1m ---e[m  
[2021-07-22T02:29:42.875Z] [e[1;34mINFOe[m] No tests to run.  
[2021-07-22T02:29:42.875Z] [e[1;34mINFOe[m]  
[2021-07-22T02:29:42.875Z] [e[1;34mINFOe[m] e[1m--- e[0;32mmaven-war-plugin:2.4:ware[m e[1m(default-war)e[m @ e[36mappe[0;1m ---e[m  
[2021-07-22T02:29:43.787Z] [e[1;34mINFOe[m] Packaging webapp  
[2021-07-22T02:29:43.787Z] [e[1;34mINFOe[m] Assembling webapp [app] in [/var/lib/jenkins/workspace/pipeline/target/app]  
[2021-07-22T02:29:43.787Z] [e[1;34mINFOe[m] Processing war project  
[2021-07-22T02:29:43.787Z] [e[1;34mINFOe[m] Copying webapp resources [/var/lib/jenkins/workspace/pipeline/src/main/webapp]  
[2021-07-22T02:29:44.037Z] [e[1;34mINFOe[m] Webapp assembled in [448 msecs]  
[2021-07-22T02:29:44.289Z] [e[1;34mINFOe[m] Building war: /var/lib/jenkins/workspace/pipeline/target/app.war  
[2021-07-22T02:29:46.773Z] [e[1;34mINFOe[m] e[1m------------------------------------------------------------------------e[m  
[2021-07-22T02:29:46.773Z] [e[1;34mINFOe[m] e[1;32mBUILD SUCCESSe[m  
[2021-07-22T02:29:46.773Z] [e[1;34mINFOe[m] e[1m------------------------------------------------------------------------e[m  
[2021-07-22T02:29:46.773Z] [e[1;34mINFOe[m] Total time: 6.561 s  
[2021-07-22T02:29:46.773Z] [e[1;34mINFOe[m] Finished at: 2021-07-22T02:29:46Z  
[2021-07-22T0 **2:29:46.773** Z] [e[1;34mINFOe[m] e[1m------------------------------------------------------------------------e[m  
[Pipeline] }  
[Pipeline] // stage  
[Pipeline] stage  
[Pipeline] { **(Email)**  
[Pipeline] emailext  
[2021-07-22T0 **2:29:46.859** Z] Sending mail from default account using System Admin e-mail address  
[2021-07-22T02:29:46.871Z] messageContentType = text/plain; charset=UTF-8  
[2021-07-22T02:29:46.871Z] Request made to attach build log  
[2021-07-22T02:29:46.871Z] Adding recipients from project recipient list  
[2021-07-22T02:29:46.872Z] Analyzing: [harireddy090@gmail.com](mailto:harireddy090@gmail.com),harindra48@gmail.com,harindranagireddy@gmail.com  
[2021-07-22T02:29:46.872Z] Looking for: [harireddy090@gmail.com](mailto:harireddy090@gmail.com)  
[2021-07-22T02:29:46.872Z] starting at: 0  
[2021-07-22T02:29:46.873Z] firstFoundIdx: 0  
[2021-07-22T02:29:46.873Z] firstFoundIdx-substring: [harireddy090@gmail.com](mailto:harireddy090@gmail.com),harindra48@gmail.com,harindranagireddy@gmail.com  
[2021-07-22T02:29:46.873Z] =\> found type: 0  
[2021-07-22T02:29:46.873Z] Looking for: [harindra48@gmail.com](mailto:harindra48@gmail.com)  
[2021-07-22T02:29:46.873Z] starting at: 23  
[2021-07-22T02:29:46.873Z] firstFoundIdx: 23  
[2021-07-22T02:29:46.873Z] firstFoundIdx-substring: [harindra48@gmail.com](mailto:harindra48@gmail.com),harindranagireddy@gmail.com  
[2021-07-22T02:29:46.873Z] =\> found type: 0  
[2021-07-22T02:29:46.873Z] Looking for: [harindranagireddy@gmail.com](mailto:harindranagireddy@gmail.com)  
[2021-07-22T02:29:46.873Z] starting at: 44  
[2021-07-22T02:29:46.873Z] firstFoundIdx: 44  
[2021-07-22T02:29:46.873Z] firstFoundIdx-substring: [harindranagireddy@gmail.com](mailto:harindranagireddy@gmail.com)  
[2021-07-22T02:29:46.873Z] =\> found type: 0  
[2021-07-22T02:29:46.873Z] Analyzing: [harireddy090@gmail.com](mailto:harireddy090@gmail.com),harindra48@gmail.com,harindranagireddy@gmail.com  
[2021-07-22T02:29:46.873Z] Looking for: [harireddy090@gmail.com](mailto:harireddy090@gmail.com)  
[2021-07-22T02:29:46.873Z] starting at: 0  
[2021-07-22T02:29:46.881Z] firstFoundIdx: 0  
[2021-07-22T02:29:46.881Z] firstFoundIdx-substring: [harireddy090@gmail.com](mailto:harireddy090@gmail.com),harindra48@gmail.com,harindranagireddy@gmail.com  
[2021-07-22T02:29:46.881Z] =\> found type: 0  
[2021-07-22T02:29:46.881Z] Looking for: [harindra48@gmail.com](mailto:harindra48@gmail.com)  
[2021-07-22T02:29:46.881Z] starting at: 23  
[2021-07-22T02:29:46.881Z] firstFoundIdx: 23  
[2021-07-22T02:29:46.881Z] firstFoundIdx-substring: [harindra48@gmail.com](mailto:harindra48@gmail.com),harindranagireddy@gmail.com  
[2021-07-22T02:29:46.881Z] =\> found type: 0  
[2021-07-22T02:29:46.881Z] Looking for: [harindranagireddy@gmail.com](mailto:harindranagireddy@gmail.com)  
[2021-07-22T02:29:46.881Z] starting at: 44  
[2021-07-22T02:29:46.881Z] firstFoundIdx: 44  
[2021-07-22T02:29:46.881Z] firstFoundIdx-substring: [harindranagireddy@gmail.com](mailto:harindranagireddy@gmail.com)  
[2021-07-22T02:29:46.881Z] =\> found type: 0  
[2021-07-22T02:29:46.881Z] Analyzing: [harireddy090@gmail.com](mailto:harireddy090@gmail.com),harindra48@gmail.com,harindranagireddy@gmail.com  
[2021-07-22T02:29:46.881Z] Looking for: [harireddy090@gmail.com](mailto:harireddy090@gmail.com)  
[2021-07-22T02:29:46.881Z] starting at: 0  
[2021-07-22T02:29:46.881Z] firstFoundIdx: 0  
[2021-07-22T02:29:46.881Z] firstFoundIdx-substring: [harireddy090@gmail.com](mailto:harireddy090@gmail.com),harindra48@gmail.com,harindranagireddy@gmail.com  
[2021-07-22T02:29:46.881Z] =\> found type: 0  
[2021-07-22T02:29:46.881Z] Looking for: [harindra48@gmail.com](mailto:harindra48@gmail.com)  
[2021-07-22T02:29:46.881Z] starting at: 23  
[2021-07-22T02:29:46.881Z] firstFoundIdx: 23  
[2021-07-22T02:29:46.881Z] firstFoundIdx-substring: [harindra48@gmail.com](mailto:harindra48@gmail.com),harindranagireddy@gmail.com  
[2021-07-22T02:29:46.881Z] =\> found type: 0  
[2021-07-22T02:29:46.881Z] Looking for: [harindranagireddy@gmail.com](mailto:harindranagireddy@gmail.com)  
[2021-07-22T02:29:46.881Z] starting at: 44  
[2021-07-22T02:29:46.881Z] firstFoundIdx: 44  
[2021-07-22T02:29:46.881Z] firstFoundIdx-substring: [harindranagireddy@gmail.com](mailto:harindranagireddy@gmail.com)  
[2021-07-22T02:29:46.881Z] =\> found type: 0  
[2021-07-22T02:29:46.881Z] Adding recipients from trigger recipient list  
[2021-07-22T02:29:46.881Z] Successfully created MimeMessage  
[2021-07-22T02:29:46.882Z] Sending email to: [harireddy090@gmail.com](mailto:harireddy090@gmail.com) [harindra48@gmail.com](mailto:harindra48@gmail.com) [harindranagireddy@gmail.com](mailto:harindranagireddy@gmail.com)  
[2021-07-22T02:29:46.882Z] DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Oracle]  
[2021-07-22T02:29:46.905Z] DEBUG SMTP: need username and password for authentication  
[2021-07-22T02:29:46.905Z] DEBUG SMTP: protocolConnect returning false, [host=smtp.gmail.com](http://host=smtp.gmail.com), user=jenkins, password=  
[2021-07-22T02:29:46.905Z] DEBUG SMTP: useEhlo true, useAuth true  
[2021-07-22T02:29:46.905Z] DEBUG SMTP: trying to connect to host "[smtp.gmail.com](http://smtp.gmail.com)", port 465, isSSL false  
[2021-07-22T02:29:47.010Z] 220 [smtp.gmail.com](http://smtp.gmail.com) ESMTP c15sm23431251wmr.28 - gsmtp  
[2021-07-22T02:29:47.010Z] DEBUG SMTP: connected to host "[smtp.gmail.com](http://smtp.gmail.com)", port: 465  
[2021-07-22T02:29:47.015Z] EHLO ip-10-1-1-103.eu-west-2.compute.internal  
[2021-07-22T02:29:47.028Z] [250-smtp.gmail.com](http://250-smtp.gmail.com) at your service, [3.9.115.12]  
[2021-07-22T02:29:47.028Z] 250-SIZE 35882577  
[2021-07-22T02:29:47.028Z] 250-8BITMIME  
[2021-07-22T02:29:47.028Z] 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH  
[2021-07-22T02:29:47.028Z] 250-ENHANCEDSTATUSCODES  
[2021-07-22T02:29:47.028Z] 250-PIPELINING  
[2021-07-22T02:29:47.028Z] 250-CHUNKING  
[2021-07-22T02:29:47.028Z] 250 SMTPUTF8  
[2021-07-22T02:29:47.028Z] DEBUG SMTP: Found extension "SIZE", arg "35882577"  
[2021-07-22T02:29:47.028Z] DEBUG SMTP: Found extension "8BITMIME", arg ""  
[2021-07-22T02:29:47.028Z] DEBUG SMTP: Found extension "AUTH", arg "LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH"  
[2021-07-22T02:29:47.028Z] DEBUG SMTP: Found extension "ENHANCEDSTATUSCODES", arg ""  
[2021-07-22T02:29:47.028Z] DEBUG SMTP: Found extension "PIPELINING", arg ""  
[2021-07-22T02:29:47.028Z] DEBUG SMTP: Found extension "CHUNKING", arg ""  
[2021-07-22T02:29:47.028Z] DEBUG SMTP: Found extension "SMTPUTF8", arg ""  
[2021-07-22T02:29:47.028Z] DEBUG SMTP: protocolConnect login, [host=smtp.gmail.com](http://host=smtp.gmail.com), [user=harindra48@gmail.com](mailto:user=harindra48@gmail.com), password=  
[2021-07-22T02:29:47.028Z] DEBUG SMTP: Attempt to authenticate using mechanisms: LOGIN PLAIN DIGEST-MD5 NTLM XOAUTH2  
[2021-07-22T02:29:47.028Z] DEBUG SMTP: Using mechanism LOGIN  
[2021-07-22T02:29:47.028Z] DEBUG SMTP: AUTH LOGIN command trace suppressed  
[2021-07-22T02:29:47.356Z] DEBUG SMTP: AUTH LOGIN succeeded  
[2021-07-22T02:29:47.357Z] DEBUG SMTP: use8bit false  
[2021-07-22T02:29:47.367Z] RCPT TO:[harireddy090@gmail.com](mailto:harireddy090@gmail.com)  
[2021-07-22T02:29:47.376Z] 250 2.1.5 OK c15sm23431251wmr.28 - gsmtp  
[2021-07-22T02:29:47.376Z] RCPT TO:[harindra48@gmail.com](mailto:harindra48@gmail.com)  
[2021-07-22T02:29:47.398Z] DEBUG SMTP: [harireddy090@gmail.com](mailto:harireddy090@gmail.com)  
[2021-07-22T02:29:47.398Z] DEBUG SMTP: [harindra48@gmail.com](mailto:harindra48@gmail.com)  
[2021-07-22T02:29:47.398Z] DEBUG SMTP: [harindranagireddy@gmail.com](mailto:harindranagireddy@gmail.com)  
[2021-07-22T0 **2:29:47.476** Z] 354 Go ahead c15sm23431251wmr.28 - gsmtp

---

<div class="post-metadata">

**Author:** ![Harindra\_Balanagired](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harindra_balanagired/32/92577_2.png) [@Harindra\_Balanagired](https://discuss.elastic.co/u/Harindra_Balanagired)\
**Post date:** [August 26, 2021, 12:20pm UTC](https://discuss.elastic.co/t/can-we-visualize-jenkins-stages-through-kibana/281974/6 "2021-08-26T12:20:58Z")

</div>

> [@Harindra\_Balanagired](#):
>
> 2:29:35.424

 ![22](https://us1.discourse-cdn.com/elastic/original/3X/e/5/e5dd517ce855961b4cc1bdd2b0390ac23038626b.png)  
sample graph I am looking like this

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [August 26, 2021, 12:36pm UTC](https://discuss.elastic.co/t/can-we-visualize-jenkins-stages-through-kibana/281974/7 "2021-08-26T12:36:33Z")

</div>

Thanks for the graph. That helps a lot.

In order to visualize in Kibana, you will need some code logic to parse out this information from your jenkins logs.

How are you putting jenkins logs into Elasticsearch?

---

<div class="post-metadata">

**Author:** ![Harindra\_Balanagired](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harindra_balanagired/32/92577_2.png) [@Harindra\_Balanagired](https://discuss.elastic.co/u/Harindra_Balanagired)\
**Post date:** [August 26, 2021, 12:54pm UTC](https://discuss.elastic.co/t/can-we-visualize-jenkins-stages-through-kibana/281974/8 "2021-08-26T12:54:21Z")

</div>

This setup sends my Jenkins console logs to **Elasticsearch** you can see the below image

configured it in jenkins like see the below image

 ![j](https://us1.discourse-cdn.com/elastic/original/3X/9/a/9a046ef4de0ffdc8c7f3acd4af9bfc193c4e85bf.png)

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [August 26, 2021, 1:16pm UTC](https://discuss.elastic.co/t/can-we-visualize-jenkins-stages-through-kibana/281974/9 "2021-08-26T13:16:14Z")

</div>

And then what does a jenkins log event look like in Elasticsearch? What are the mapped fields?

---

<div class="post-metadata">

**Author:** ![Harindra\_Balanagired](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harindra_balanagired/32/92577_2.png) [@Harindra\_Balanagired](https://discuss.elastic.co/u/Harindra_Balanagired)\
**Post date:** [August 26, 2021, 2:06pm UTC](https://discuss.elastic.co/t/can-we-visualize-jenkins-stages-through-kibana/281974/10 "2021-08-26T14:06:57Z")

</div>

mappings  
**data.buildDuration: 116,521 (3 stages total run time) but I want to visualize individual stage run time**

 ![para](https://us1.discourse-cdn.com/elastic/original/3X/0/c/0c6605f3cef9929a071e148903b7d7315f560f06.png)

 ![pp](https://us1.discourse-cdn.com/elastic/original/3X/4/c/4cd3238a9a41944e89021835163b58a292dddf0a.png)  
**this image showing stage parameter but 1st image mapping filed is no there**

 ![Capture](https://us1.discourse-cdn.com/elastic/original/3X/a/2/a270fe49073a26247c610e88ba31e8e025f1e07b.png)

{  
"mappings": {  
"jenkins": {  
"properties": {  
"@buildTimestamp": {  
"type": "date"  
},  
"@timestamp": {  
"type": "date"  
},  
"@version": {  
"type": "long"  
},  
"data": {  
"properties": {  
"agentName": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"buildDuration": {  
"type": "long"  
},  
"buildHost": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"buildLabel": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"buildNum": {  
"type": "long"  
},  
"buildVariables": {  
"properties": {  
"BUILD\_DISPLAY\_NAME": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"BUILD\_ID": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"BUILD\_NUMBER": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"BUILD\_TAG": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"BUILD\_URL": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"CI": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"CLASSPATH": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"EXECUTOR\_NUMBER": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"GIT\_BRANCH": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"GIT\_COMMIT": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"GIT\_PREVIOUS\_COMMIT": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"GIT\_PREVIOUS\_SUCCESSFUL\_COMMIT": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"GIT\_URL": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"HOME": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"HUDSON\_HOME": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"HUDSON\_SERVER\_COOKIE": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"HUDSON\_URL": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"JENKINS\_HOME": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"JENKINS\_SERVER\_COOKIE": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"JENKINS\_URL": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"JOB\_BASE\_NAME": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"JOB\_DISPLAY\_URL": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"JOB\_NAME": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"JOB\_URL": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"LANG": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"LOGNAME": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"MAIL": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"NODE\_LABELS": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"NODE\_NAME": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"PATH": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"PWD": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"RUN\_ARTIFACTS\_DISPLAY\_URL": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"RUN\_CHANGES\_DISPLAY\_URL": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"RUN\_DISPLAY\_URL": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"RUN\_TESTS\_DISPLAY\_URL": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"SHELL": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"SHLVL": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"USER": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
}, "XDG\_DATA\_DIRS": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"\_": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
}  
}  
},  
"displayName": {  
"type": "text",

```
    "source_host": {
      "type": "text",
      "fields": {
        "keyword": {
          "type": "keyword",
          "ignore_above": 256
        }
      }
    }
  }
}

```

}  
}

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 23, 2021, 2:07pm UTC](https://discuss.elastic.co/t/can-we-visualize-jenkins-stages-through-kibana/281974/11 "2021-09-23T14:07:30Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
