Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Flume >> mail # user >> syslog facility calculation is wrong [FLUME-1427]


Copy link to this message
-
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
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB