Open
Description
- Version: 7.2.0 and up
- Operating System: Reproduced on RHEL 7.7 and Windows 10
- Config File:
input {
stdin { }
}
output {
syslog {
host => "127.0.0.1"
port => "514"
sourcehost => "test"
message => "dummy"
}
}
- Steps to Reproduce:
Expected behaviour: The output will replace the default %{message} field with the text "dummy" and send it to the syslog server running on localhost.
Output on Logstash 7.1.1:
Feb 3 14:21:50 test LOGSTASH[-]: dummy
Output on Logstash >7.2.0:
Feb 3 14:23:48 test LOGSTASH[-]: 2020-02-03T14:23:48.725Z hostname logmessage
Also validated using tcpdump:
# tcpdump -nnAs0 -i lo port 52467
listening on lo, link-type EN10MB (Ethernet), capture size 262144 bytes
02:41:27.609504 IP 127.0.0.1.52467 > 127.0.0.1.514: SYSLOG user.notice, length: 82
E..nwy@.@................Z.m<13>Feb 05 01:41:27 test LOGSTASH[-]: 2020-02-05T01:41:27.504Z hostname logmessage
I'm guessing the change in codec.encode() might be the culprit?
elastic/logstash#10620
Metadata
Metadata
Assignees
Labels
No labels