Skip to content

Instantly share code, notes, and snippets.

View Robert-McGinley's full-sized avatar

Robert McGinley Robert-McGinley

View GitHub Profile
@marvin
marvin / gist:1017480
Created June 9, 2011 19:16
syslog calculate facility and severity from PRI(priority)
example:
PRI = 191
To get the Facility
Divide the PRI number by 8.
191/8 = 23.875
The whole number part is the facility.
To get the Severity