Skip to content

Commit

Permalink
out_loki: Change loglevel for non-existing label in ra
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
drbugfinder-work authored and edsiper committed Apr 9, 2024
1 parent 1245ef9 commit 6fac2c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/out_loki/loki.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 6fac2c4

Please sign in to comment.