Skip to content

Commit

Permalink
use config key "add_label" in code of plugin
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Meyer <[email protected]>
  • Loading branch information
wndhydrnt committed Sep 26, 2023
1 parent 1ca1d02 commit 2b6d525
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/filter_log_to_metrics/log_to_metrics.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2b6d525

Please sign in to comment.