ES template

This commit is contained in:
Kameron Kenny 2024-06-14 10:43:32 -04:00
parent 7fa8609291
commit 8bea28567e
No known key found for this signature in database
GPG Key ID: E5006629839D2276
3 changed files with 26 additions and 2 deletions

View File

@ -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

View File

@ -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")
); );
}; };

View File

@ -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