File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -145,6 +145,7 @@ struct flb_config {
145145
146146 /* Multiline core parser definitions */
147147 struct mk_list multiline_parsers ;
148+ size_t multiline_buffer_limit ; /* limit for multiline concatenated data */
148149
149150 /* Outputs instances */
150151 struct mk_list outputs ; /* list of output plugins */
@@ -408,6 +409,9 @@ enum conf_type {
408409/* Coroutines */
409410#define FLB_CONF_STR_CORO_STACK_SIZE "Coro_Stack_Size"
410411
412+ /* Multiline */
413+ #define FLB_CONF_STR_MULTILINE_BUFFER_LIMIT "multiline_buffer_limit"
414+
411415/* Scheduler */
412416#define FLB_CONF_STR_SCHED_CAP "scheduler.cap"
413417#define FLB_CONF_STR_SCHED_BASE "scheduler.base"
Original file line number Diff line number Diff line change @@ -169,6 +169,10 @@ struct flb_service_config service_configs[] = {
169169 FLB_CONF_TYPE_INT ,
170170 offsetof(struct flb_config , coro_stack_size )},
171171
172+ {FLB_CONF_STR_MULTILINE_BUFFER_LIMIT ,
173+ FLB_CONF_TYPE_INT ,
174+ offsetof(struct flb_config , multiline_buffer_limit )},
175+
172176 /* Scheduler */
173177 {FLB_CONF_STR_SCHED_CAP ,
174178 FLB_CONF_TYPE_INT ,
@@ -361,6 +365,7 @@ struct flb_config *flb_config_init()
361365 * on we use flb_config_exit to cleanup the config, which requires
362366 * the config->multiline_parsers list to be initialized. */
363367 mk_list_init (& config -> multiline_parsers );
368+ config -> multiline_buffer_limit = FLB_ML_BUFFER_LIMIT_DEFAULT ;
364369
365370 /* Task map */
366371 ret = flb_config_task_map_resize (config , FLB_CONFIG_DEFAULT_TASK_MAP_SIZE );
You can’t perform that action at this time.
0 commit comments