-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Logstash syslog output plugin not setting facility correctly #39
Comments
There are 2 facilities missing in FACILITY_LABELS array you are using as index. |
Still running into this issue with logstash 6.2. Workaround for getting to local5 was set facility to local7. We need to send things to local6 normally so I'll be using the priority field instead. |
2nd request to address this bug... as MrWolf1978 details, FACILITY_LABELS is missing two entries... Running logstash-output-syslog (3.0.5) in /usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-output-syslog-3.0.5/lib/logstash/outputs/syslog.rb: FACILITY_LABELS = [ there should be a setting between clock & ftp, and log alert & local0. |
logstash 6.4.0
I get..
|
As @rxp1997 and @MrWolf1978 already stated, there are two entries missing in the array Reverting above mentioned commit would fix the problem for non-duplicate The only option I see to remedy the situation would be to use integer values for the 'facility' config setting, but that's currently not supported. @suyograo, what's your take on this? |
the simplest solution to this (i think) is to append a string to these duplicated values |
@Shaoranlaos, yes i can confirm. I'm using this workaround since Oct 2017, and it's working fine. |
This issue is still present in syslog output plugin. For example, if "local0" facility (code 16) is specified in the configuration, the plugin mistakenly uses facility of "console" (code 14), "local1" (code 17) gets mistakenly replaced with "solaris-cron" (code 15), "local2" (code 18) is replaced with "local0" (code 16), etc. |
Using this plugin to send some logs to a remote host.
Configuration in logstash related with this plugin is as follows:
output {
syslog {
host => "10.0.0.25"
port => "514"
protocol => "udp"
facility => "local5"
severity => "debug"
}
}
Then on the remote rsyslog server I've noticed that the logs are send with severity 3.
If I want them to be send to remote server as local5 then I need to configure logstash with facility == "local7". This is not scalable since if we want to send to the remote host as facility 'local7', then it's not clear which value to use in the config.
This behavior is seen in logstash 5.2. This was not happening in logstash 1.5.6.
The text was updated successfully, but these errors were encountered: