\"reason\":\"data_stream [<sfw-{2023-07-11||/d{yyyy-MM-dd|UTC}}>] must not contain the following characters ['<','*','?','>','|',',','/','\\\\',' ','\\\"']\"}, dropping event!",
You need to share it, go at Index Management > Index Templates, select your template, click to edit and take a screenshot of the screen.
Also, on Dev Tools run this request and share the result:
GET _index_template/template-name
You probably checked the box Create data stream, which you should not check if you want daily indices, and there is something wrong in your index patterns configuration, it should be just sfx-*.
Thanks @leandrojmp able to perform in correct way. As you told data stream was chosen by default due to which getting error. Is there any way we can made data stream no while create template by using REST API command. GET _index_template/template-name
To create a data stream you just need to add this line in your index template.
"data_stream": {}
So, something like this:
PUT _index_template/template_name
{
"index_patterns": ["data_stream_name"],
"data_stream": {}
"template": { the rest of your template }
But what is your end goal? In your original post you mentioned that you want to have daily indices, if you want to have daily indices you cannot use data streams, just normal indices.
With data streams you need to have an ILM policy because it uses an alias, the data stream name, and rollover for the backing indices.
@leandrojmp I want to disable data stream in my Index template (how we can do while creating the template). By default it is getting enable while creating the 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.