Skip to content

Instantly share code, notes, and snippets.

job "test" {
namespace = "test"
datacenters = ["dc1"]
type = "service"
group "test" {
task "test" {
driver = "exec"
config {
@carobme
carobme / gist:432d5e858fe38af26c6a09dd23728cb4
Created September 9, 2021 08:13 — forked from marvin/gist:1017480
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