Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-59110

Logstash plugin: Not working for Pipeline jobs when 'Enabled Globally'

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • logstash-plugin
    • None
    • OS - CentOS 7 (via a Vagrant box)
      Jenkins - 2.190
      Pipeline: API Plugin - 2.36
      Logstash Plugin - 2.31

    Description

      I'm trying to use the Logstash plugin to send build information to an Elasticsearch instance where I've configured 'Enable Globally' for the plugin. 

      I'm not modifying the pipeline jogs to use the logstash{} block as I'd like to do this at the global level

      Per the caveat at https://wiki.jenkins.io/display/JENKINS/Logstash+Plugin JENKINS-45693 is resolved, and the fix for that has been merged. See https://plugins.jenkins.io/workflow-api > Changelog > 2.36 (2019 Aug 01). It looks like it's available for Jenkins instances that are at least at v2.138.4.

      I have a Jenkins 2.190 instance with the Pipeline: API v2.36 plugin and Logstash v2.31 plugin installed.

      I see this in the log:
      NFO jenkins.plugins.logstash.PluginImpl start
      Logstash: a logstash agent to send jenkins logs to a logstash indexer.

      But, nothing appeared in elasticsearch.

      This DOES work as expected for freestyle jobs.

      Attachments

        Activity

          Hi,

          I'm facing the same issue, any news on this topic ?

          Christophe

          hach Christophe Hauquiert added a comment - Hi, I'm facing the same issue, any news on this topic ? Christophe

          Sorry, I don't have time to work on this ATM.
          If anybody want's to send a PR I'll be happy to assist and review

          jbochenski Jakub Bochenski added a comment - Sorry, I don't have time to work on this ATM. If anybody want's to send a PR I'll be happy to assist and review
          mwinter69 Markus Winter added a comment -

          opened https://github.com/jenkinsci/logstash-plugin/pull/93 that enables global logging for pipeline

          mwinter69 Markus Winter added a comment - opened https://github.com/jenkinsci/logstash-plugin/pull/93 that enables global logging for pipeline

          People

            jbochenski Jakub Bochenski
            leoqa Lee Leibke
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated: