Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/call-windows-unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ jobs:
-D FLB_WITHOUT_flb-rt-out_forward=On `
-D FLB_WITHOUT_flb-rt-in_disk=On `
-D FLB_WITHOUT_flb-rt-in_proc=On `
-D FLB_WITHOUT_flb-it-parser=On `
-D FLB_WITHOUT_flb-it-unit_sizes=On `
-D FLB_WITHOUT_flb-it-network=On `
-D FLB_WITHOUT_flb-it-pack=On `
Expand Down
20 changes: 20 additions & 0 deletions include/fluent-bit/flb_parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ struct flb_parser {
char *time_key; /* field name that contains the time */
int time_offset; /* fixed UTC offset */
int time_system_timezone; /* use the system timezone as a fallback */
char *time_zone; /* IANA timezone for naive timestamps */
void *time_zone_data; /* parsed native timezone data */
int time_keep; /* keep time field */
int time_strict; /* parse time field strictly */
int logfmt_no_bare_keys; /* in logfmt parsers, require all keys to have values */
Expand Down Expand Up @@ -91,6 +93,8 @@ static inline time_t flb_parser_tm2time(const struct flb_tm *src,
return res;
}

time_t flb_parser_tm2time_parser(const struct flb_tm *src,
struct flb_parser *parser);

struct flb_parser *flb_parser_create(const char *name, const char *format,
const char *p_regex,
Expand All @@ -105,6 +109,22 @@ struct flb_parser *flb_parser_create(const char *name, const char *format,
int types_len,
struct mk_list *decoders,
struct flb_config *config);
struct flb_parser *flb_parser_create_with_time_zone(const char *name,
const char *format,
const char *p_regex,
int skip_empty,
const char *time_fmt,
const char *time_key,
const char *time_offset,
int time_keep,
int time_strict,
int time_system_timezone,
const char *time_zone,
int logfmt_no_bare_keys,
struct flb_parser_types *types,
int types_len,
struct mk_list *decoders,
struct flb_config *config);
int flb_parser_conf_file_stat(const char *file, struct flb_config *config);
int flb_parser_conf_file(const char *file, struct flb_config *config);
int flb_parser_load_parser_definitions(const char *cfg, struct flb_cf *cf,
Expand Down
Loading
Loading