25 lines
1.1 KiB
Django/Jinja
25 lines
1.1 KiB
Django/Jinja
{{ ansible_header | comment }}
|
|
|
|
$template CablageFileFormat,"%TIMESTAMP:::date-rfc3339% %fromhost% %syslogtag%%msg%\\n"
|
|
|
|
# Logs des switches
|
|
|
|
if $fromhost-ip startswith '172.16.33.' then /pool/logs/tealc/cablage/global.log; CablageFileFormat
|
|
|
|
# Logs des bornes
|
|
|
|
## Dropbear est atteint de logorhée, une partie de ses logs ne sont pas vitaux
|
|
if $programname contains "dropbear" and $msg contains "Exit before auth: Exited normally" then ~
|
|
if $programname contains "dropbear" and re_match($msg, "Child connection from (127.0.0.1|::1|10.231.148.102)") then ~
|
|
if $programname contains "dropbear" and re_match($msg, "Pubkey auth succeeded .* from 10.231.148.102") then ~
|
|
if $programname contains "dropbear" and re_match($msg, "Exit \\(.*\\): Disconnect received") then ~
|
|
|
|
if $fromhost-ip startswith '172.16.34.' then /pool/logs/tealc/cablage/global.log; CablageFileFormat
|
|
|
|
# Logs RADIUS
|
|
if $programname contains 'freeradius' then /pool/logs/tealc/cablage/global.log
|
|
if $programname contains 'radiusd' then /pool/logs/tealc/cablage/global.log
|
|
|
|
# Logs DHCP
|
|
if $programname contains 'dhcpd' then /pool/logs/tealc/cablage/global.log
|