-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathsyslog-ng.conf
More file actions
executable file
·40 lines (34 loc) · 871 Bytes
/
syslog-ng.conf
File metadata and controls
executable file
·40 lines (34 loc) · 871 Bytes
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
@version:3.2
options {
flush_lines (0);
time_reopen (10);
log_fifo_size (1000);
long_hostnames (off);
chain_hostnames(no);
use_dns (no);
use_fqdn (no);
create_dirs (no);
keep_hostname (no);
};
source ocdn_access_log {
udp(ip(0.0.0.0) port(514));
};
source ocdn_sys_log {
udp(ip(0.0.0.0) port(515));
};
template sect {
template("$HOST $MSG\n");template_escape(no);
};
template sect2 {
template("$MSG\n");template_escape(no);
};
destination ocdn_access_pipe {
pipe("/usr/local/opencdn/pipe/access.pipe" template(sect));
};
destination ocdn_sys_pipe {
pipe("/usr/local/opencdn/pipe/sys_info.pipe" template(sect));
};
log { source(ocdn_access_log); destination(ocdn_access_pipe);
};
log { source(ocdn_sys_log); destination(ocdn_sys_pipe);
};