Filebeat not able to send all logs

Have you tried increasing the value of close_timeout as described here.

Have you tried by disabling queue.mem and see if that helped?