File: syslog-ng.conf

package info (click to toggle)
sshproxy 0.6.0~beta2-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 956 kB
  • ctags: 1,296
  • sloc: python: 8,932; sh: 268; sql: 40; makefile: 38; xml: 21
file content (26 lines) | stat: -rw-r--r-- 1,281 bytes parent folder | download
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
# SSHproxy logs
source netudp { udp(); };

destination sshproxy_debug { file("/var/log/sshproxy/debug.log"); };
destination sshproxy_info { file("/var/log/sshproxy/info.log"); };
destination sshproxy_warn { file("/var/log/sshproxy/warn.log"); };
destination sshproxy_error { file("/var/log/sshproxy/error.log"); };
destination sshproxy_critical { file("/var/log/sshproxy/critical.log"); };

filter sshproxy_debug { facility(daemon) and level(debug); };
filter sshproxy_info { facility(daemon) and level(info); };
filter sshproxy_warn { facility(daemon) and level(warn); };
filter sshproxy_error { facility(daemon) and level(error); };
filter sshproxy_critical { facility(daemon) and level(critical); };

log { source(netudp); filter(sshproxy_debug); destination(sshproxy_debug); };
log { source(netudp); filter(sshproxy_info); destination(sshproxy_info); };
log { source(netudp); filter(sshproxy_warn); destination(sshproxy_warn); };
log { source(netudp); filter(sshproxy_error); destination(sshproxy_error); };
log { source(netudp); filter(sshproxy_critical); destination(sshproxy_critical); };

# log all 
filter sshproxy { match(".* sshproxy.*"); };
destination sshproxy { file("/var/log/sshproxy/all.log"); };
log { source(netudp); filter(sshproxy); destination(sshproxy); };