diff --git a/logmngr/files/lib/logmngr/fluent-bit.sh b/logmngr/files/lib/logmngr/fluent-bit.sh index a991c8928..877105451 100644 --- a/logmngr/files/lib/logmngr/fluent-bit.sh +++ b/logmngr/files/lib/logmngr/fluent-bit.sh @@ -544,6 +544,11 @@ logmngr_init() { procd_set_param command $PROG -c ${CONF_FILE} procd_set_param file ${CONF_FILE} fi - procd_set_param respawn + + # if process finishes later than respawn_threshold, it is restarted unconditionally, regardless of error code + # wait 5 seconds before respawning + # for example, if proto is udp in syslog output and url is not resolved then fluent-bit stops + # this is done to make sure that eventually when the url can be resolved then logging resumes + procd_set_param respawn ${respawn_threshold:-1} ${respawn_timeout:-5} procd_close_instance }