Uploaded image for project: 'Flume'
  1. Flume
  2. FLUME-1427

Syslog Facility calculation is wrong

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 1.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.

        Attachments

        1. syslog.patch
          0.6 kB
          Bhaskar Karambelkar

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: