Closed chaitrahegde115 closed 1 year ago
I can reproduce this problem.
<source>
@type sample
tag "test"
sample {"message":"Hello world."}
rate 1
</source>
<match test.**>
@type remote_syslog
host "localhost"
port 22222
severity "warning"
<buffer>
flush_mode immediate
</buffer>
</match>
<source>
@type syslog
tag "receive"
port 22222
bind "localhost"
</source>
<match receive.**>
@type stdout
</match>
The source code of syslog_protocol still uses "warn" which is deprecated.
As @chaitrahegde115 says, the syslog_protocol
code is deprecated:
There is already a PR to fix this: https://github.com/eric/syslog_protocol/pull/9
However, the library seems to be not maintained for a while.
This problem is fixed. Thanks for reporting!
syslog_protocol gem is a dependency of fluentd-plugin-remote_syslog which is used to output logs to remote syslog. The logs which are created with severity "warning" are discarded by fluentd as bad chunk with the below message:
"warning" is a valid severity for syslog https://en.wikipedia.org/wiki/Syslog#Severity_level The source code of syslog_protocol still uses "warn" which is deprecated. Can you please suggest us the way forward to this?
Thanks