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

Syslog Facility calculation is wrong

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 1.2.0
    • None
    • Sinks+Sources

    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

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

              Dates

                Created:
                Updated:
                Resolved: