Mariglen Meta
Mariglen Meta

Reputation: 61

How to send Jenkins console logs into Elastic?

I'm trying to build a post-build in Jenkins pipelines so that every time a failure happens I want to send the console log error into Elastic so I can track how often an error happens or similar things. I have different declarative pipelines like Freestyle, Multibranch. I have been looking OpenTelemntry plugin but this doesn't support Freestyle jobs.

Is there any way that I can get console logs in Jenkinsfile and send it into Elastic with cURL command for example?

Upvotes: 0

Views: 998

Answers (1)

Mariglen Meta
Mariglen Meta

Reputation: 61

I just wanted to post this maybe it will help someone who can come across for an answer. It turns out that using the OpenTelemtry plugin in Jenkis to send the logs in Elastic was a very good decision and everyone liked it. This page OpenTelemetry can give an overview of how it looks and how you can make OpenTelementry work with Jenkins.

Upvotes: 0

Related Questions