You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flume.apache.org by "Bhaskar V. Karambelkar" <bh...@gmail.com> on 2012/08/03 22:21:43 UTC
syslog facility calculation is wrong [FLUME-1427]
Hi,
The syslog facility calculation is wrong.
I created a Jira issue https://issues.apache.org/jira/browse/FLUME-1427
and submitted a patch.
In short, priority = (facility*8) + severity
so
severity = priority % 8
facility = (priority - severity) /8 ;
but in SyslogUtils's buildEvent, facility = (priority - severity)
i.e. /8 is missing.
The patch is very small and straight forward, can this be applied on 1.2.0
branch and 1.3.0(trunk)
thanks
Bhaskar