I a still left with an option to define only an index and creating template and ilm policy beforehand manually or via filebeat (even if I do not want to, because I want to use the default templates and policies?)
You will just set the index to the data stream name: logs-my.app-prod
Whether a data stream is created just depends on whether or not there's an index template which matches the index name and that it is defined to create a data stream
If you set the index to mydata-prod, it will not match any index templates and will result in a regular index being created.
By default anything that starts with logs-* should result in a datastream
Thanks that is what I was looking for. This info would be really helpful on the filebeat input documentation actually. There is only example with index.
I do understand right using the naming vention logs-*-* I do not need to create a template for that right? It should take the default/managed logs template.
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.