output.elasticsearch:
# Array of hosts to connect to.
hosts: ["localhost:9200", "localhost:5601"]
# Protocol - either `http` (default) or `https`.
#protocol: "https"
# Authentication credentials - either API key or username/password.
#api_key: "id:api_key"
username: "elastic"
password: "changeme"
Welcome to our community!
Please format your code/logs/config using the </> button, or markdown style back ticks. It helps to make things easy to read which helps us help you.
It'd also be helpful if you could show us the full error you are receiving here.
Thanks, Stephen Brown for the reply but the issue didn't get resolved I am assuming that's the reason why filebeat is not shipping logs to the elasticsearch.
Hi Mark! Thanks for the reply, Let me just brief you on what I am trying.
I have done the setup for elk stack locally and I am using filebeat to ship the logs to Elasticsearch, but for some reason, I am not able to push logs to the Elasticsearch and I am getting this error when I start filebeat
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.