logstash-plugins / logstash-output-elasticsearch

https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html
Apache License 2.0
216 stars 306 forks source link

Determine if `data_streams => true` can be possible with ECS compatibility effectively disabled #1176

Open yaauie opened 3 months ago

yaauie commented 3 months ago

Currently, we prohibit the use of data_stream => true, and resolve the default data_stream => auto to false when ECS is effectively disabled. The primary driver of this is to prevent users from getting themselves into a situation implicitly that would cause them trouble.

We need to determine in what conditions a customer should be able enable data streams features when they also want to run the pipeline without ECS.

When running on Logstash 8, ECS is on-by-default, but that can be:

When ECS is disabled, the behaviour in this plugin is changed in a couple of ways:

When data streams is effectively enabled, manage_templates defaults to false.

Therefore, when a user explicitly asks for data_stream => true, and does not also set manage_templates => true, the effective value of ecs_compatibility should have no effect. We need to verify this assertion, and if it holds true, should begin allowing users who explicitly ask for data streams to operate with or without ECS enabled.