I see in logstash that document_type is deprecated.
When removed, the document type used is doc.
What should I do in this case. I tried type => "MyType" but seems not working
For any new indices created in Elasticsearch 6.x, only one type is allowed per index, which means that you can not use it to differential different types of data (although you could store the type in a normal field instead and filter on this if needed). I therefore do not see the reason why you need to set the type instead of using the default value 'doc'.
Thank you for you answer Christian.
I have already loaded some data in ES using DevTools. The type created had a business name.
Also I wanted to have data from Logstash as before without any new changes (it's why i added remove_fields and document_type).
How upward compatibility be satisfied if you remove that field?
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.