-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsyslog-ng
More file actions
18 lines (15 loc) · 792 Bytes
/
syslog-ng
File metadata and controls
18 lines (15 loc) · 792 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
options {
use_dns (yes);
use_fqdn (yes);
keep_hostname (yes);
};
#Filter all traffic:
source single { udp(); };
source t { tcp(); };
destination Y { file("/var/log/remote_syslog/remote_syslog.log" owner(www-data) group(www-data) perm(0644) dir_perm(0644) dir_owner(www-data) dir_group(www-data) create_dirs(yes)); };
log { source(single); source(t); destination(Y); };
#Per host filter:
destination X { file("/var/log/remote_syslog/per_host/$HOST/$HOST-$YEAR-$MONTH-$DAY.log" owner(www-data) group(www-data) perm(0644) dir_perm(0744) dir_owner(www-data) dir_group(www-data) create_dirs(yes)); };
log { source(single); source(t); destination(X); };
#filter myfilter { ( level(notice) ); };
#log { source(mysource); filter(myfilter); destination(dest); };