I see three index templates filebeat-6.7.1, filebeat-7.0.0 and filebeat-7.0.1. Each with corresponding index patterns like filebeat-7.0.1- *.
Until now my logstash config was set to output.elasticsearch.index => filebeat-%{+yyyy.MM.dd} - so the templates did not match. Now I set the index to filebeat-%{[agent][version]}-%{+yyyy.MM.dd}. But now I use version 7.1.0 and new indexes are called like filebeat-7.1.0-2019.06.05. There is no template for this version. So my question is: where does these templates come from, and how do I get one for version 7.1.0?
# filebeat setup --template -E output.logstash.enabled=false -E 'output.elasticsearch.hosts=["localhost:9200"]' -E "output.elasticsearch.user=elastic" -E "output.elasticsearch.password=xxx"
Exiting: Couldn't connect to any of the configured Elasticsearch hosts. Errors: [Error connection to Elasticsearch http://localhost:9200: 401 Unauthorized: {"error":{"root_cause":[{"type":"security_exception","reason":"unable to authenticate user [] for REST request [/]","header":{"WWW-Authenticate":"Basic realm=\"security\" charset=\"UTF-8\""}}],"type":"security_exception","reason":"unable to authenticate user [] for REST request [/]","header":{"WWW-Authenticate":"Basic realm=\"security\" charset=\"UTF-8\""}},"status":401}]
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.