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

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


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

      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.

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