I am using Logstash version 7.11 and and trying to output logs from logstash pipeline to Elastic version 8.*.
I am using hosts, index, api_key, ssl and action params with ssl => true and action => "create" .
I don't see any logs in Elastic. and see this error : "only write ops with an op_type of create are allowed in data streams"
Can someone help with any pointers what could be wrong/missing.
Hi @aashini
this is kinda of down deep in the weeds ... complicated because you are using such an old version of Logstash.
Where is the data originating from? a Beat? something else?
Are you purposely trying to write to a data stream?
If you are The problem is that the incoming data / documents have a field [@metadata][op_type] that is probably set to index and that is why it is failing...
You can try removing that field or set it to create
Or you can manually create and index in 8.x elasticsearch and the output to that.
You could also try updated to an 8.x logstash ....
@stephenb yes, looks like old logstash version doesn't support writing to data stream (which was preferable). So I am writing logs to an Index now and planning to upgrade to 8.x logstash soon.
Thanks for your reply.
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.