From 5e1beb4185ab4a037fc1e30819d8d791835702e4 Mon Sep 17 00:00:00 2001 From: Ben Kochie Date: Mon, 30 Nov 2020 03:00:37 +0100 Subject: [PATCH] Capture newlines in log stdlib (#1041) Capture newlines in the stdlib adapter messages. Avoids cutting off multi-line log messages. See: https://github.com/prometheus/node_exporter/issues/1886 Signed-off-by: Ben Kochie --- stdlib.go | 4 ++-- stdlib_test.go | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/stdlib.go b/stdlib.go index 2d030c4..0338edb 100644 --- a/stdlib.go +++ b/stdlib.go @@ -131,7 +131,7 @@ const ( logRegexpDate = `(?P[0-9]{4}/[0-9]{2}/[0-9]{2})?[ ]?` logRegexpTime = `(?P