Did you fix the rest of the formatting?
Is your elasticsearch really running on https?
did you enable security authentication etc. setup certs do all that stuff?
Looks like bad creds... that is the error you get with bad creds...
pretty simple try to curl from filebeat host with the same host and creds that are in the elasticsearch.output
section filebeat.yml see what you get
First try this is ignores the self signed cert.
curl --insecure -u "username:password" https://elastichost:9200