187 lines
4.0 KiB
Plaintext
187 lines
4.0 KiB
Plaintext
#############################################################################
|
|
# Default syslog-ng.conf file which collects all local logs into a
|
|
# single file called /var/log/messages tailored to container usage.
|
|
|
|
@version: 4.2
|
|
@include "scl.conf"
|
|
|
|
source s_local { internal(); };
|
|
source s_network_tcp { syslog(transport(tcp) port(6601)); };
|
|
source s_network_udp { syslog(transport(udp) port(5514)); };
|
|
|
|
filter f_unifi_fw_lan { match("LAN" value("PID")); };
|
|
filter f_unifi_fw_wan { match("WAN" value("PID")); };
|
|
filter f_unifi_fw_dnat { match("DNAT" value("PID")); };
|
|
filter f_unifi_dnsmasq { match("dnsmasq" value("PID")); };
|
|
filter f_unifi_systemd { match("systemd" value("PID")); };
|
|
filter f_unifi_stahtd { match("stahtd" value("PID")); };
|
|
filter f_unifi_mcad { match("mcad" value("PID")); };
|
|
filter f_unifi_hostapd { match("hostapd" value("PID")); };
|
|
filter f_unifi_wlan { message("wlan:"); };
|
|
|
|
destination d_local {
|
|
file("/var/log/messages");
|
|
file("/var/log/messages-kv.log" template("$ISODATE $HOST $(format-welf --scope all-nv-pairs)\n") frac-digits(3));
|
|
};
|
|
|
|
destination d_unifi_fw { file("/var/log/unifi_fw.log"); };
|
|
|
|
destination d_unifi_firewall {
|
|
elasticsearch-http(
|
|
index("unifi-firewall")
|
|
type("")
|
|
user("elastic")
|
|
password("forty6and2")
|
|
url("http://pi501.in.thelinuxpro.net:9200/_bulk")
|
|
persist-name("persist")
|
|
);
|
|
};
|
|
|
|
destination d_unifi_dnsmasq {
|
|
elasticsearch-http(
|
|
index("unifi-dnsmasq")
|
|
type("")
|
|
user("elastic")
|
|
password("forty6and2")
|
|
url("http://pi501.in.thelinuxpro.net:9200/_bulk")
|
|
persist-name("persist")
|
|
);
|
|
};
|
|
|
|
destination d_unifi_systemd {
|
|
elasticsearch-http(
|
|
index("unifi-systemd")
|
|
type("")
|
|
user("elastic")
|
|
password("forty6and2")
|
|
url("http://pi501.in.thelinuxpro.net:9200/_bulk")
|
|
persist-name("persist")
|
|
);
|
|
};
|
|
|
|
destination d_unifi_stahtd {
|
|
elasticsearch-http(
|
|
index("unifi-stahtd")
|
|
type("")
|
|
user("elastic")
|
|
password("forty6and2")
|
|
url("http://pi501.in.thelinuxpro.net:9200/_bulk")
|
|
persist-name("persist")
|
|
);
|
|
};
|
|
|
|
destination d_unifi_mcad {
|
|
elasticsearch-http(
|
|
index("unifi-mcad")
|
|
type("")
|
|
user("elastic")
|
|
password("forty6and2")
|
|
url("http://pi501.in.thelinuxpro.net:9200/_bulk")
|
|
persist-name("persist")
|
|
);
|
|
};
|
|
|
|
destination d_unifi_hostapd {
|
|
elasticsearch-http(
|
|
index("unifi-hostapd")
|
|
type("")
|
|
user("elastic")
|
|
password("forty6and2")
|
|
url("http://pi501.in.thelinuxpro.net:9200/_bulk")
|
|
persist-name("persist")
|
|
);
|
|
};
|
|
|
|
destination d_unifi_wlan {
|
|
elasticsearch-http(
|
|
index("unifi-wlan")
|
|
type("")
|
|
user("elastic")
|
|
password("forty6and2")
|
|
url("http://pi501.in.thelinuxpro.net:9200/_bulk")
|
|
persist-name("persist")
|
|
);
|
|
};
|
|
|
|
destination d_syslog_ng_es {
|
|
elasticsearch-http(
|
|
index("syslog-ng")
|
|
type("")
|
|
user("elastic")
|
|
password("forty6and2")
|
|
url("http://pi501.in.thelinuxpro.net:9200/_bulk")
|
|
persist-name("persist")
|
|
);
|
|
};
|
|
|
|
log {
|
|
source(s_network_udp);
|
|
filter(f_unifi_fw_lan);
|
|
destination(d_unifi_firewall);
|
|
flags(final);
|
|
};
|
|
|
|
log {
|
|
source(s_network_udp);
|
|
filter(f_unifi_fw_wan);
|
|
destination(d_unifi_firewall);
|
|
flags(final);
|
|
};
|
|
|
|
log {
|
|
source(s_network_udp);
|
|
filter(f_unifi_fw_dnat);
|
|
destination(d_unifi_firewall);
|
|
flags(final);
|
|
};
|
|
|
|
log {
|
|
source(s_network_udp);
|
|
filter(f_unifi_dnsmasq);
|
|
destination(d_unifi_firewall);
|
|
flags(final);
|
|
};
|
|
|
|
log {
|
|
source(s_network_udp);
|
|
filter(f_unifi_systemd);
|
|
destination(d_unifi_firewall);
|
|
flags(final);
|
|
};
|
|
|
|
log {
|
|
source(s_network_udp);
|
|
filter(f_unifi_stahtd);
|
|
destination(d_unifi_firewall);
|
|
flags(final);
|
|
};
|
|
|
|
log {
|
|
source(s_network_udp);
|
|
filter(f_unifi_mcad);
|
|
destination(d_unifi_firewall);
|
|
flags(final);
|
|
};
|
|
|
|
log {
|
|
source(s_network_udp);
|
|
filter(f_unifi_hostapd);
|
|
destination(d_unifi_firewall);
|
|
flags(final);
|
|
};
|
|
|
|
log {
|
|
source(s_network_udp);
|
|
filter(f_unifi_wlan);
|
|
destination(d_unifi_firewall);
|
|
flags(final);
|
|
};
|
|
|
|
log {
|
|
source(s_local);
|
|
source(s_network_tcp);
|
|
source(s_network_udp);
|
|
destination(d_syslog_ng_es);
|
|
};
|
|
|