Skip to content

Commit

Permalink
bin: allow [MULTILINE_PARSER] on pre-check
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Silva <[email protected]>
  • Loading branch information
edsiper committed Jun 5, 2021
1 parent 3dd43ea commit 687b08f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/fluent-bit.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 687b08f

Please sign in to comment.