/usr/share/augeas/lenses/dist/tests/test_rsyslog.aug is in augeas-lenses 1.2.0-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 | (*
Module: Test_Rsyslog
Provides unit tests and examples for the <Rsyslog> lens.
*)
module Test_Rsyslog =
(* Variable: conf *)
let conf = "# rsyslog v5 configuration file
$ModLoad imuxsock # provides support for local system logging (e.g. via logger command)
$ModLoad imklog # provides kernel logging support (previously done by rklogd)
$UDPServerRun 514
$InputTCPServerRun 514
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
$ActionFileEnableSync on
$IncludeConfig /etc/rsyslog.d/*.conf
*.info;mail.none;authpriv.none;cron.none /var/log/messages
authpriv.* /var/log/secure
*.emerg *
*.* @2.7.4.1
*.* @@2.7.4.1
*.emerg :omusrmsg:*
*.emerg :omusrmsg:foo,bar
"
(* Test: Rsyslog.lns *)
test Rsyslog.lns get conf =
{ "#comment" = "rsyslog v5 configuration file" }
{ }
{ "$ModLoad" = "imuxsock"
{ "#comment" = "provides support for local system logging (e.g. via logger command)" }
}
{ "$ModLoad" = "imklog"
{ "#comment" = "provides kernel logging support (previously done by rklogd)" }
}
{ "$UDPServerRun" = "514" }
{ "$InputTCPServerRun" = "514" }
{ "$ActionFileDefaultTemplate" = "RSYSLOG_TraditionalFileFormat" }
{ "$ActionFileEnableSync" = "on" }
{ "$IncludeConfig" = "/etc/rsyslog.d/*.conf" }
{ }
{ "entry"
{ "selector"
{ "facility" = "*" }
{ "level" = "info" }
}
{ "selector"
{ "facility" = "mail" }
{ "level" = "none" }
}
{ "selector"
{ "facility" = "authpriv" }
{ "level" = "none" }
}
{ "selector"
{ "facility" = "cron" }
{ "level" = "none" }
}
{ "action"
{ "file" = "/var/log/messages" }
}
}
{ "entry"
{ "selector"
{ "facility" = "authpriv" }
{ "level" = "*" }
}
{ "action"
{ "file" = "/var/log/secure" }
}
}
{ "entry"
{ "selector"
{ "facility" = "*" }
{ "level" = "emerg" }
}
{ "action"
{ "user" = "*" }
}
}
{ "entry"
{ "selector"
{ "facility" = "*" }
{ "level" = "*" }
}
{ "action"
{ "protocol" = "@" }
{ "hostname" = "2.7.4.1" }
}
}
{ "entry"
{ "selector"
{ "facility" = "*" }
{ "level" = "*" }
}
{ "action"
{ "protocol" = "@@" }
{ "hostname" = "2.7.4.1" }
}
}
{ "entry"
{ "selector"
{ "facility" = "*" }
{ "level" = "emerg" }
}
{ "action"
{ "omusrmsg" = "*" }
}
}
{ "entry"
{ "selector"
{ "facility" = "*" }
{ "level" = "emerg" }
}
{ "action"
{ "omusrmsg" = "foo" }
{ "omusrmsg" = "bar" } }
}
|