@@ -163,6 +163,13 @@ struct flb_service_config service_configs[] = {
163163 {FLB_CONF_STORAGE_INHERIT ,
164164 FLB_CONF_TYPE_BOOL ,
165165 offsetof(struct flb_config , storage_inherit )},
166+ /* Storage / DLQ */
167+ {FLB_CONF_STORAGE_KEEP_REJECTED ,
168+ FLB_CONF_TYPE_BOOL ,
169+ offsetof(struct flb_config , storage_keep_rejected )},
170+ {FLB_CONF_STORAGE_REJECTED_PATH ,
171+ FLB_CONF_TYPE_STR ,
172+ offsetof(struct flb_config , storage_rejected_path )},
166173
167174 /* Coroutines */
168175 {FLB_CONF_STR_CORO_STACK_SIZE ,
@@ -312,6 +319,7 @@ struct flb_config *flb_config_init()
312319 config -> storage_type = NULL ;
313320 config -> storage_inherit = FLB_FALSE ;
314321 config -> storage_bl_flush_on_shutdown = FLB_FALSE ;
322+ config -> storage_rejected_path = NULL ;
315323 config -> sched_cap = FLB_SCHED_CAP ;
316324 config -> sched_base = FLB_SCHED_BASE ;
317325 config -> json_escape_unicode = FLB_TRUE ;
@@ -573,6 +581,9 @@ void flb_config_exit(struct flb_config *config)
573581 if (config -> storage_bl_mem_limit ) {
574582 flb_free (config -> storage_bl_mem_limit );
575583 }
584+ if (config -> storage_rejected_path ) {
585+ flb_free (config -> storage_rejected_path );
586+ }
576587
577588#ifdef FLB_HAVE_STREAM_PROCESSOR
578589 if (config -> stream_processor_file ) {
0 commit comments