Skip to content
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

Haproxy syslog message facility bad parsing #2802

Closed
marianschmotzer opened this issue Mar 10, 2015 · 1 comment
Closed

Haproxy syslog message facility bad parsing #2802

marianschmotzer opened this issue Mar 10, 2015 · 1 comment

Comments

@marianschmotzer
Copy link

Hi
After connecting haproxy to logstash with UDP syslog message shipping, all messages have facilty 1, regardless what I put into haproxy configuration. Obviously syslog plugin isn't parsing messages correctly, because message after it leaves logstash looks like this:
"<168>Mar 10 10:02:57 haproxy[2329]: backend 01-sc-backend has no server available!"
Please notice priority fiels is not being parsed is <168> which is 168/8 = 21 and facility 21 equals to local5 facility level (as i have it in haproxy set up, pls see bellow).
Logstash version: 1.4.2

Haproxy config (only relevant part):
global
group haproxy
log syslog:1514 len 1024 local7
log /var/lib/haproxy/dev/log local5
log-tag haproxy
maxconn 8000
stats socket /var/lib/haproxy/stats
tune.ssl.default-dh-param 2048
user haproxy
defaults
log global
option redispatch
retries 3
stats enable

Logstash config:
input {
syslog {
port => '1514'
}
}
output {
if [facility] < 16 {
elasticsearch_http {
host => 'localhost'
index => "syslog-%{+YYYY.MM.dd}"
template_name => "logstash_denza"
template => "/etc/logstash/logstash_template.json"
manage_template => true
}

@jordansissel
Copy link
Contributor

For Logstash 1.5.0, we've moved all plugins to individual repositories, so I have moved this issue to logstash-plugins/logstash-input-syslog#13. Let's continue the discussion there! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants