Flume
  1. Flume
  2. FLUME-1427

Syslog Facility calculation is wrong

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: v1.2.0
    • Fix Version/s: None
    • Component/s: Sinks+Sources
    • Labels:

      Description

      As per Syslog RFC, priority = (facility * 8) + severity, given this logic, the code to calculate facility and severity from priority should be

      severity = priority % 8 ;
      facility = (priority - severity) / 8 ;

      But in SyslogUtils's buildEvent method
      facility = priority - severity

      i.e. the / 8 is missing.

      1. syslog.patch
        0.6 kB
        Bhaskar Karambelkar

        Issue Links

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Bhaskar Karambelkar
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development