From 2b6d525c66e33d19730f09812bdbadb89d0ac5b5 Mon Sep 17 00:00:00 2001 From: Markus Meyer Date: Sun, 24 Sep 2023 12:48:55 +0200 Subject: [PATCH] use config key "add_label" in code of plugin Signed-off-by: Markus Meyer --- plugins/filter_log_to_metrics/log_to_metrics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/filter_log_to_metrics/log_to_metrics.c b/plugins/filter_log_to_metrics/log_to_metrics.c index a61e4827f34..99b4034c142 100644 --- a/plugins/filter_log_to_metrics/log_to_metrics.c +++ b/plugins/filter_log_to_metrics/log_to_metrics.c @@ -271,7 +271,7 @@ static int set_labels(struct log_to_metrics_ctx *ctx, else if (strcasecmp(kv->key, "add_label") == 0) { split = flb_utils_split(kv->val, ' ', 1); if (mk_list_size(split) != 2) { - flb_plg_error(ctx->ins, "invalid label, expected name and key"); + flb_plg_error(ctx->ins, "invalid add_label, expected name and key"); flb_utils_split_free(split); return -1; }