Skip to content

Commit

Permalink
reverting to old regex cri parser to check fuzzer
Browse files Browse the repository at this point in the history
Signed-off-by: ryanohnemus <ryanohnemus@gmail.com>
  • Loading branch information
ryanohnemus committed Jan 9, 2025
1 parent c4e5edf commit 9f0a5f6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/multiline/flb_ml_parser_cri.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
#include <fluent-bit/multiline/flb_ml.h>
#include <fluent-bit/multiline/flb_ml_parser.h>

//Reverting change for fuzz test...
#define FLB_ML_CRI_REGEX \
"^(?<time>.+?) (?<stream>stdout|stderr) (?<_p>F|P) (?<log>.*)$"
#define FLB_ML_CRI_TIME \
"%Y-%m-%dT%H:%M:%S.%L%z"

Expand All @@ -30,8 +33,8 @@ static struct flb_parser *cri_parser_create(struct flb_config *config)
struct flb_parser *p;

p = flb_parser_create("_ml_cri", /* parser name */
"cri", /* backend type */
NULL, /* regex */
"regex", //"cri", /* backend type */
FLB_ML_CRI_REGEX, //NULL, /* regex */
FLB_FALSE, /* skip_empty */
FLB_ML_CRI_TIME, /* time format */
"time", /* time key */
Expand Down

0 comments on commit 9f0a5f6

Please sign in to comment.