I'm using the Logstash plugin to log the details of each build. I'd like to know which node produced each log entry.
The source code seems to capture that info <https://github.com/jenkinsci/logstash-plugin/blob/master/src/main/java/jenkins/plugins/logstash/persistence/BuildData.java#L239> . I've tried a logstashSend step and a logstash block but the build label is always logged as master. No other field records the node either. E.g., with a few linux nodes with the label 'aws', I've tried: node('aws') { sh''' echo 'Hello, world!' ''' logstashSend failBuild: true, maxLines: 1000 } And logstash { node('aws') { sh''' echo 'Hello, World!' ''' } } But the data sent to logstash is: ... "_source": { "data": { "buildHost": "Jenkins", "buildLabel": "master", ... Am I missing something? Could anyone help me figure out how to log the node label? Thanks, -Mark -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/0b9ad9d7-7249-4878-bb06-414b65edcec2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
