-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
Jenkins lts 2.150.2 , logstash 2.3.0
Hi,
When using logstash to send to our syslog server, the $HOST tag/attribute is incorrectly being set to whatever the target logging host is instead of the jenkins host.
E.g., we say we have a jenkins host jsci01 and a syslog logger host logger01.
Setting the syslog destination file to ${HOST}_jenkins.log you would expect to be jsci01_jenkins.log , but instead when using logstash it sends to logger01_jenkins.log .
Using the same settings (logger01, udp, RFC3164), the $HOST attribute is set to the jenkins host as expected when using the somewhat dated syslog-logger plugin.
This is the line responsible for this https://github.com/jenkinsci/logstash-plugin/blame/master/src/main/java/jenkins/plugins/logstash/persistence/SyslogDao.java#L47
The current behavior has been so since the beginning, but I think we can change it, as sending the target hostname seems useless.
mwinter69 WDYT?