diff --git a/Dockerfile b/Dockerfile index 5a6f937..92c8c10 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM debian:latest MAINTAINER Kameron Kenny -LABEL version="20241030100627" +LABEL version="20250109220036" LABEL description="Debian Based syslog-ng" RUN apt-get update diff --git a/config/syslog-ng.conf.d/0-dest-influx.conf b/config/syslog-ng.conf.d/0-dest-influx.conf new file mode 100644 index 0000000..f1c8c2a --- /dev/null +++ b/config/syslog-ng.conf.d/0-dest-influx.conf @@ -0,0 +1,6 @@ +destination d_telegraf { + syslog("telegraf.in.thelinuxpro.net" port(6514)); +}; +filter f_default { level(info..emerg)); +}; +log { source(s_sys); filter(f_default); destination(d_telegraf); }; diff --git a/config/syslog-ng.conf.d/bind-dns.conf b/config/syslog-ng.conf.d/bind-dns.conf index f0c603f..a04536d 100644 --- a/config/syslog-ng.conf.d/bind-dns.conf +++ b/config/syslog-ng.conf.d/bind-dns.conf @@ -65,6 +65,6 @@ log { parser(p_bind_docker_header); parser(p_client_ip_port); parser(p_bind_client_ip_geoip2_city); - destination(d_bind_logs); + destination(d_telegraf); flags(final); }; diff --git a/docker-compose.yml b/docker-compose.yml index 7798683..5c93bd2 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:20241030100627 + image: docker-registry1.in.thelinuxpro.net:5000/tlp/syslog-ng:20250109220036 container_name: syslog-ng restart: unless-stopped networks: