[syslog-ng] [PATCH] value-pairs: Use MESSAGE instead of MSG.

Gergely Nagy algernon at balabit.hu
Sun May 8 10:37:04 CEST 2011


MESSAGE is the canonical name of the key, not MSG. Using MSG in the
rfc3164 scope will result in both MSG and MESSAGE being present if
nv-pairs is being used aswell.

Using the canonical name, only MESSAGE will end up in the set, which
is exactly what we'd like.

Signed-off-by: Gergely Nagy <algernon at balabit.hu>
---
 lib/value-pairs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/value-pairs.c b/lib/value-pairs.c
index f88a486..7a09812 100644
--- a/lib/value-pairs.c
+++ b/lib/value-pairs.c
@@ -76,7 +76,7 @@ static ValuePairSpec rfc3164[] =
   { "HOST"     },
   { "PROGRAM"  },
   { "PID"      },
-  { "MSG"      },
+  { "MESSAGE"  },
   { "DATE", "R_DATE" },
   { 0 },
 };
-- 
1.7.2.5



More information about the syslog-ng mailing list