From 6fac2c4311bbf73a829c613c6751c8bccb25b281 Mon Sep 17 00:00:00 2001 From: Richard Treu Date: Mon, 8 Apr 2024 08:44:44 +0200 Subject: [PATCH] out_loki: Change loglevel for non-existing label in ra This message can be reduced from warning to debug level. Prevents from spamming the Fluent Bit log, in case logs sometimes do not have all defined labels filled Signed-off-by: Richard Treu --- plugins/out_loki/loki.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/out_loki/loki.c b/plugins/out_loki/loki.c index 2acb75f678f..f02b698f211 100644 --- a/plugins/out_loki/loki.c +++ b/plugins/out_loki/loki.c @@ -363,7 +363,7 @@ static flb_sds_t pack_labels(struct flb_loki *ctx, ra_val = flb_ra_translate(kv->ra_key, tag, tag_len, *(map), NULL); if (!ra_val || flb_sds_len(ra_val) == 0) { /* if no value is retruned or if it's empty, just skip it */ - flb_plg_warn(ctx->ins, + flb_plg_debug(ctx->ins, "empty record accessor key translation for pattern: %s", kv->ra_key->pattern); }