Skip to content

Commit

Permalink
readd static cri parser
Browse files Browse the repository at this point in the history
Signed-off-by: ryanohnemus <[email protected]>
  • Loading branch information
ryanohnemus committed Jan 9, 2025
1 parent 9f0a5f6 commit da4016a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/multiline/flb_ml_parser_cri.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@
#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 @@ -33,8 +30,8 @@ static struct flb_parser *cri_parser_create(struct flb_config *config)
struct flb_parser *p;

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

0 comments on commit da4016a

Please sign in to comment.