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

          Bhaskar Karambelkar created issue -
          Bhaskar Karambelkar made changes -
          Field Original Value New Value
          Status Open [ 1 ] Patch Available [ 10002 ]
          Bhaskar Karambelkar made changes -
          Attachment syslog.patch [ 12539091 ]
          Bhaskar Karambelkar made changes -
          Status Patch Available [ 10002 ] Open [ 1 ]
          Bhaskar Karambelkar made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Fix Version/s v1.3.0 [ 12322140 ]
          Fix Version/s v1.2.0 [ 12320243 ]
          Mike Percy made changes -
          Link This issue duplicates FLUME-1470 [ FLUME-1470 ]
          Mike Percy made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Fix Version/s v1.2.0 [ 12320243 ]
          Resolution Duplicate [ 3 ]
          Mike Percy made changes -
          Fix Version/s v1.3.0 [ 12322140 ]
          Mike Percy made changes -
          Affects Version/s v1.3.0 [ 12322140 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development