From 496784e3121b4cf37217659d9bfe98ec61275688 Mon Sep 17 00:00:00 2001
From: ale <ale@incal.net>
Date: Mon, 12 Jun 2023 20:09:13 +0100
Subject: [PATCH] Remove useless statement

We can't "drop" the message field in the rsyslog object, so for now
just store it. It's duplicating the @cee info, but whatever.

In the future we might want to split out two separate templates (one
which does not insert the 'message' field for fully structured logs).
---
 .../templates/rsyslog-collector.conf.j2                          | 1 -
 1 file changed, 1 deletion(-)

diff --git a/roles/float-infra-log-collector/templates/rsyslog-collector.conf.j2 b/roles/float-infra-log-collector/templates/rsyslog-collector.conf.j2
index 68cf5318..d29c59df 100644
--- a/roles/float-infra-log-collector/templates/rsyslog-collector.conf.j2
+++ b/roles/float-infra-log-collector/templates/rsyslog-collector.conf.j2
@@ -170,7 +170,6 @@ ruleset(name="incoming"){
   # they differ just in the way the attributes are generated.
   if (substring($msg, 0, 5) == "@cee:") then {
     action(type="mmjsonparse")
-    unset $!msg;
 
     # Extension point for rules applying to structured logs.
     include(
-- 
GitLab