I want to create a index and push data directly to elasticsearch with filebeat but i am not able to create a index its showing me the error can someone help me out.
Exiting: setup.template.name and setup.template.pattern have to be set if index name is modified
This will fix the error as I had the same problem earlier but for me the index name is still filebeat-xxxx the index name don't change.
More information in the doc:
To use a different name, you set the index option in the Elasticsearch output. The value that you specify should include the root name of the index plus version and date information. You also need to configure the setup.template.name and setup.template.pattern options to match the new name.
Also better to use a daily index it cost nothing and prevent to forget when you will move to production.
I am also facing the same issue (unable to change index name) and the doc doesn't help me enough clarifying the good use of setup.template.* options in the filebeat config file.
I'm finally wondering if what we try to do is the right thing.
Maybe some best practices for dealing with filebeat indexes would help us?
Sorry don't mean to hijack your topic, but I think it is related and I don't want to see it closed.
With ILM (Index Lifecycle Management) enabled, output.elasticsearch.index option will be ignored. And ILM is activated by default with clusters that support this feature.
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.