Hi Team,
I am facing challenge while performing Index rollover and delete functionality on elastic search.
Current version of Elastic Search : 7.4
Issue : While processing the event by snowplow-kinesis-elasticsearch-sink and snowplow-kinesis-elasticsearch-sink-bad , i am using the ‘enabled’ the configuration as
‘good’ and ‘bad’ respectively.
snowplow-kinesis-elasticsearch-sink –
“good” for a stream of successfully enriched events
“bad” for a stream of bad events
“plain-json” for writing plain json
enabled = good
snowplow-kinesis-elasticsearch-sink-bad –
“good” for a stream of successfully enriched events
“bad” for a stream of bad events
“plain-json” for writing plain json
enabled = bad
Error receiving writing to elastic search good indices (good-000001) -
" failed with message Rejecting mapping update to [good-000001] as the final mapping would have more than 1 type: [_doc, good] "
This is because in newer version (7.x) of elastic search doesn’t support multiple document types. By default the document type is ‘_doc’.
[ Elasticsearch 7.x
Specifying types in requests is deprecated. For instance, indexing a document no longer requires a document type. The new index APIs are PUT {index}/_doc/{id} in case of explicit ids and POST {index}/_doc for auto-generated ids. ]
Can you please help me to overcome this issue. Any help will be appreciated.
Thanks in advance.