-
Notifications
You must be signed in to change notification settings - Fork 2
/
syslog-ng.conf
51 lines (45 loc) · 1.08 KB
/
syslog-ng.conf
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
@version: 3.30
# Syslog-ng configuration file, compatible with default Debian syslogd
# installation.
# First, set some global options.
options {
chain_hostnames(off);
flush_lines(1000);
use_dns(no);
use_fqdn(no);
owner("root");
group("adm");
perm(0644);
stats_freq(0);
bad_hostname("^gconfd$");
};
########################
# Sources
########################
# This is the default behavior of sysklogd package
# Logs may come from unix stream, but not from another machine.
#
source s_net {
network(port(514) transport("udp"));
network(port(601) transport("tcp"));
};
########################
# Destinations
########################
# First some standard logfile
#
# Network
destination d_voip {
file("/var/log/network/$FULLHOST.log"
template ("$YEAR $DATE.$MSEC ${MSGHDR}${MSGONLY}\n")
create_dirs(yes));
};
########################
# Filters
########################
# Here's come the filter options. With this rules, we can set which
# message go where.
########################
# Log paths
########################
log { source(s_net); destination (d_voip); };