From 687b08fb56fda4d9f4facab023b028a38a92d84b Mon Sep 17 00:00:00 2001 From: Eduardo Silva Date: Fri, 4 Jun 2021 19:00:34 -0600 Subject: [PATCH] bin: allow [MULTILINE_PARSER] on pre-check Signed-off-by: Eduardo Silva --- src/fluent-bit.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/fluent-bit.c b/src/fluent-bit.c index 513faa8be4f..f5f43c5073e 100644 --- a/src/fluent-bit.c +++ b/src/fluent-bit.c @@ -694,11 +694,12 @@ static int flb_service_conf(struct flb_config *config, char *file) } /* Extra sanity checks */ - if (strcasecmp(section->name, "PARSER") == 0) { + if (strcasecmp(section->name, "PARSER") == 0 || + strcasecmp(section->name, "MULTILINE_PARSER") == 0) { fprintf(stderr, - "Section [PARSER] is not valid in the main " - "configuration file. It belongs to \n" - "the Parsers_File configuration files.\n"); + "Sections [MULTILINE_PARSER] and [PARSER] are not valid in " + "the main configuration file. It belongs to \n" + "the 'parsers_file' configuration files.\n"); } else { fprintf(stderr,