Please, can you format your configs, shell outputs, commands, etc in markdown? it's difficult to follow
That kafka error is from the kafka golang library from other posts found using the forum search.
And please, don't clone posts Filebeat 7.11 is not publishing application log into AWS MSK-2.2.1, getting error kafka: client has run out of available brokers to talk