-
Notifications
You must be signed in to change notification settings - Fork 0
/
syslog_server.conf
29 lines (24 loc) · 5.81 KB
/
syslog_server.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
source s_net {
udp(port(514)); syslog();
};
###### # patterndb parser
parser pattern_db {
db-parser( file("/opt/syslog-ng/etc/patterndb.xml") );
};
###### # Elasticsearch destination
destination d_es {
elasticsearch2 (
cluster("syslog-ng")
client_mode("http")
index("syslog-ng_${YEAR}.${MONTH}.${DAY}")
type("test")
template("$(format-json --scope all-nv-pairs --exclude ISODATE --key ISODATE)")
)
};
###### # sending logs to ES destination
log {
source(s_net);
parser(pattern_db);
destination(d_es);
flags(flow-control);
};