diff --git a/Dockerfile b/Dockerfile index a580d6a..8ad13cb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM lscr.io/linuxserver/syslog-ng:latest -LABEL version="20240607.1.7" +LABEL version="20240614.1.1" LABEL description="syslog-ng" RUN mkdir -p /config diff --git a/config/syslog-ng.conf b/config/syslog-ng.conf index 3ab2386..04c89ef 100644 --- a/config/syslog-ng.conf +++ b/config/syslog-ng.conf @@ -33,6 +33,9 @@ destination d_unifi_firewall { user("elastic") password("forty6and2") 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") ); }; @@ -44,6 +47,9 @@ destination d_unifi_dnsmasq { user("elastic") password("forty6and2") 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") ); }; @@ -55,6 +61,9 @@ destination d_unifi_systemd { user("elastic") password("forty6and2") 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") ); }; @@ -66,6 +75,9 @@ destination d_unifi_stahtd { user("elastic") password("forty6and2") 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") ); }; @@ -77,6 +89,9 @@ destination d_unifi_mcad { user("elastic") password("forty6and2") 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") ); }; @@ -88,6 +103,9 @@ destination d_unifi_hostapd { user("elastic") password("forty6and2") 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") ); }; @@ -99,6 +117,9 @@ destination d_unifi_wlan { user("elastic") password("forty6and2") 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") ); }; @@ -110,6 +131,9 @@ destination d_syslog_ng_es { user("elastic") password("forty6and2") 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") ); }; diff --git a/docker-compose.yml b/docker-compose.yml index 32a5124..f0814d3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,7 +10,7 @@ services: syslog-ng: build: 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 environment: - PUID=0