We can add the following parameters to the filebeat configuration:
#Wait time between retries during leader elections. Default is 250ms.
#The number of seconds to wait before trying to republish to Kafka after a network error. After waiting backoff.init seconds, the Beat tries to republish. If the attempt fails, the backoff timer is increased exponentially up to backoff.max. After a successful publish, the backoff timer is reset. The default is 1s.