From ceb42dcc2c0ec8cfe8c5ca82798b59ec7a6a517c Mon Sep 17 00:00:00 2001
From: ale <ale@incal.net>
Date: Mon, 27 Apr 2020 13:41:45 +0100
Subject: [PATCH] Remove extraneous text

---
 .../templates/rsyslog-collector.conf.j2           | 15 ++-------------
 1 file changed, 2 insertions(+), 13 deletions(-)

diff --git a/roles/log-collector/templates/rsyslog-collector.conf.j2 b/roles/log-collector/templates/rsyslog-collector.conf.j2
index d2c62fae..7141f2ed 100644
--- a/roles/log-collector/templates/rsyslog-collector.conf.j2
+++ b/roles/log-collector/templates/rsyslog-collector.conf.j2
@@ -58,7 +58,7 @@ template(name="lokiTemplate"
            constant(value="000000000")
            constant(value="\",\"") property(name="msg" format="json")
            constant(value="\"]]}")
-        }
+}
 template(name="lokiTemplateHTTP"
          type="list" ) {
            constant(value="{")
@@ -71,7 +71,7 @@ template(name="lokiTemplateHTTP"
            constant(value="000000000")
            constant(value="\",\"") property(name="$!all-json" position.from="2" format="jsonf")
            constant(value="\"]]}")
-        }
+}
 template(name="lokiTemplateJSON"
          type="list" ) {
            constant(value="{")
@@ -85,7 +85,6 @@ template(name="lokiTemplateJSON"
            property(outname="@timestamp" name="timereported" dateFormat="unixtimestamp" format="jsonf")
            constant(value="\",\"") property(name="$!all-json" position.from="2" format="jsonf")
            constant(value="\"]]}")
-        }
 }
 # Structured audit logs already contain a @timestamp field, so we
 # don't have to add our own.
@@ -116,16 +115,6 @@ template(name="outfmt" type="list" option.jsonf="on") {
                   name="app-name" format="jsonf")
          property(outname="message"
                   name="msg" format="jsonf")
-
-     }
-{
-  "@timestamp": "2018-03-01T01:00:00+00:00",
-  "host": "172.20.245.8",
-  "severity": "DEBUG",
-  "facility": "local4",
-  "syslog-tag": "app[1666]",
-  "source": "app",
-  "message": " this is my syslog message"
 }
 
 {% if enable_elasticsearch %}
-- 
GitLab