diff --git a/src/flb_engine.c b/src/flb_engine.c index 6bf0a03cd6d..78be8d5ec8d 100644 --- a/src/flb_engine.c +++ b/src/flb_engine.c @@ -597,6 +597,9 @@ int flb_engine_failed(struct flb_config *config) flb_error("[engine] fail to dispatch FAILED message"); } + /* Waiting flushing log */ + sleep(1); + return ret; }