From ba25fc9fe2b3ec7de17c8273e134f739eeab6a5b Mon Sep 17 00:00:00 2001 From: Kameron Kenny <1267885+kkenny@users.noreply.github.com> Date: Wed, 30 Oct 2024 10:37:45 -0400 Subject: [PATCH] geoip --- config/syslog-ng.conf.d/bind-dns.conf | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/config/syslog-ng.conf.d/bind-dns.conf b/config/syslog-ng.conf.d/bind-dns.conf index b646740..4abfb6e 100644 --- a/config/syslog-ng.conf.d/bind-dns.conf +++ b/config/syslog-ng.conf.d/bind-dns.conf @@ -56,17 +56,16 @@ parser p_bind_client_ip_geoip2_city { }; destination d_bind_logs { - elasticsearch-http( - index("bind9-logs") - type("") - 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_bind_logs") - ); + elasticsearch-http( + index("bind9-logs") + type("") + 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_bind_logs")); }; log {