Reputation: 33
I currently am using filebeat to ship my Jenkins build log from /var/log/jenkins. I grok the build logs with Logstash so I can display the success/fail etc in Kibana and make some dashboard --> this is working well. One thing I cannot seem to get is the total build times for the job as a whole. I am using pipeline and multi pipeline build job types. I can see the build stage time totals in the console logs but no matter the logging level I set globally for Jenkins, these do not display in the logs. Has anyone managed to get this right? Thanks
Upvotes: 2
Views: 5350
Reputation: 1115
We have been using this Jenkins logstash-plugin https://wiki.jenkins.io/display/JENKINS/Logstash+Plugin successfully to stash the data from Jenkins jobs to elasticsearch.
Supported indexers by this plugins are available in this link https://wiki.jenkins.io/display/JENKINS/Logstash+Plugin#LogstashPlugin-IndexersCurrentlySupported
We are using the elasticsearch indexer which stashes the data directly to elasticsearch but if you want your data to go via logstash you can use Logstash indexer.
The payload format for the data is as below https://wiki.jenkins.io/display/JENKINS/Logstash+Plugin#LogstashPlugin-JSONPayloadFormat
Upvotes: 0