ES template
This commit is contained in:
parent
7fa8609291
commit
8bea28567e
|
@ -1,6 +1,6 @@
|
||||||
FROM lscr.io/linuxserver/syslog-ng:latest
|
FROM lscr.io/linuxserver/syslog-ng:latest
|
||||||
|
|
||||||
LABEL version="20240607.1.7"
|
LABEL version="20240614.1.1"
|
||||||
LABEL description="syslog-ng"
|
LABEL description="syslog-ng"
|
||||||
|
|
||||||
RUN mkdir -p /config
|
RUN mkdir -p /config
|
||||||
|
|
|
@ -33,6 +33,9 @@ destination d_unifi_firewall {
|
||||||
user("elastic")
|
user("elastic")
|
||||||
password("forty6and2")
|
password("forty6and2")
|
||||||
url("http://pi501.in.thelinuxpro.net:9200/_bulk")
|
url("http://pi501.in.thelinuxpro.net:9200/_bulk")
|
||||||
|
template("$(format-json --scope rfc5424 --scope dot-nv-pairs
|
||||||
|
--rekey .* --shift 1 --scope nv-pairs
|
||||||
|
--exclude DATE @timestamp=${ISODATE})")
|
||||||
persist-name("d_unifi_firewall")
|
persist-name("d_unifi_firewall")
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -44,6 +47,9 @@ destination d_unifi_dnsmasq {
|
||||||
user("elastic")
|
user("elastic")
|
||||||
password("forty6and2")
|
password("forty6and2")
|
||||||
url("http://pi501.in.thelinuxpro.net:9200/_bulk")
|
url("http://pi501.in.thelinuxpro.net:9200/_bulk")
|
||||||
|
template("$(format-json --scope rfc5424 --scope dot-nv-pairs
|
||||||
|
--rekey .* --shift 1 --scope nv-pairs
|
||||||
|
--exclude DATE @timestamp=${ISODATE})")
|
||||||
persist-name("d_unifi_dnsmasq")
|
persist-name("d_unifi_dnsmasq")
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -55,6 +61,9 @@ destination d_unifi_systemd {
|
||||||
user("elastic")
|
user("elastic")
|
||||||
password("forty6and2")
|
password("forty6and2")
|
||||||
url("http://pi501.in.thelinuxpro.net:9200/_bulk")
|
url("http://pi501.in.thelinuxpro.net:9200/_bulk")
|
||||||
|
template("$(format-json --scope rfc5424 --scope dot-nv-pairs
|
||||||
|
--rekey .* --shift 1 --scope nv-pairs
|
||||||
|
--exclude DATE @timestamp=${ISODATE})")
|
||||||
persist-name("d_unifi_systemd")
|
persist-name("d_unifi_systemd")
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -66,6 +75,9 @@ destination d_unifi_stahtd {
|
||||||
user("elastic")
|
user("elastic")
|
||||||
password("forty6and2")
|
password("forty6and2")
|
||||||
url("http://pi501.in.thelinuxpro.net:9200/_bulk")
|
url("http://pi501.in.thelinuxpro.net:9200/_bulk")
|
||||||
|
template("$(format-json --scope rfc5424 --scope dot-nv-pairs
|
||||||
|
--rekey .* --shift 1 --scope nv-pairs
|
||||||
|
--exclude DATE @timestamp=${ISODATE})")
|
||||||
persist-name("d_unifi_stahtd")
|
persist-name("d_unifi_stahtd")
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -77,6 +89,9 @@ destination d_unifi_mcad {
|
||||||
user("elastic")
|
user("elastic")
|
||||||
password("forty6and2")
|
password("forty6and2")
|
||||||
url("http://pi501.in.thelinuxpro.net:9200/_bulk")
|
url("http://pi501.in.thelinuxpro.net:9200/_bulk")
|
||||||
|
template("$(format-json --scope rfc5424 --scope dot-nv-pairs
|
||||||
|
--rekey .* --shift 1 --scope nv-pairs
|
||||||
|
--exclude DATE @timestamp=${ISODATE})")
|
||||||
persist-name("d_unifi_mcad")
|
persist-name("d_unifi_mcad")
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -88,6 +103,9 @@ destination d_unifi_hostapd {
|
||||||
user("elastic")
|
user("elastic")
|
||||||
password("forty6and2")
|
password("forty6and2")
|
||||||
url("http://pi501.in.thelinuxpro.net:9200/_bulk")
|
url("http://pi501.in.thelinuxpro.net:9200/_bulk")
|
||||||
|
template("$(format-json --scope rfc5424 --scope dot-nv-pairs
|
||||||
|
--rekey .* --shift 1 --scope nv-pairs
|
||||||
|
--exclude DATE @timestamp=${ISODATE})")
|
||||||
persist-name("d_unifi_hostapd")
|
persist-name("d_unifi_hostapd")
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -99,6 +117,9 @@ destination d_unifi_wlan {
|
||||||
user("elastic")
|
user("elastic")
|
||||||
password("forty6and2")
|
password("forty6and2")
|
||||||
url("http://pi501.in.thelinuxpro.net:9200/_bulk")
|
url("http://pi501.in.thelinuxpro.net:9200/_bulk")
|
||||||
|
template("$(format-json --scope rfc5424 --scope dot-nv-pairs
|
||||||
|
--rekey .* --shift 1 --scope nv-pairs
|
||||||
|
--exclude DATE @timestamp=${ISODATE})")
|
||||||
persist-name("d_unifi_wlan")
|
persist-name("d_unifi_wlan")
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -110,6 +131,9 @@ destination d_syslog_ng_es {
|
||||||
user("elastic")
|
user("elastic")
|
||||||
password("forty6and2")
|
password("forty6and2")
|
||||||
url("http://pi501.in.thelinuxpro.net:9200/_bulk")
|
url("http://pi501.in.thelinuxpro.net:9200/_bulk")
|
||||||
|
template("$(format-json --scope rfc5424 --scope dot-nv-pairs
|
||||||
|
--rekey .* --shift 1 --scope nv-pairs
|
||||||
|
--exclude DATE @timestamp=${ISODATE})")
|
||||||
persist-name("d_syslog_ng_es")
|
persist-name("d_syslog_ng_es")
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
|
@ -10,7 +10,7 @@ services:
|
||||||
syslog-ng:
|
syslog-ng:
|
||||||
build:
|
build:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
image: docker-registry1.in.thelinuxpro.net:5000/tlp/syslog-ng:240607.1.7
|
image: docker-registry1.in.thelinuxpro.net:5000/tlp/syslog-ng:240614.1.1
|
||||||
container_name: syslog-ng
|
container_name: syslog-ng
|
||||||
environment:
|
environment:
|
||||||
- PUID=0
|
- PUID=0
|
||||||
|
|
Loading…
Reference in New Issue