diff --git a/docs/reference/data-streams/logs.asciidoc b/docs/reference/data-streams/logs.asciidoc index 7058cfe51496f..381bc8bb91809 100644 --- a/docs/reference/data-streams/logs.asciidoc +++ b/docs/reference/data-streams/logs.asciidoc @@ -112,7 +112,9 @@ IMPORTANT: On existing data streams, `logsdb` mode is applied on <> * <> * <> +* <> * <> * <> * <> @@ -109,6 +110,8 @@ include::troubleshooting/data/increase-shard-limit.asciidoc[] include::troubleshooting/data/increase-cluster-shard-limit.asciidoc[] +include::troubleshooting/data/source-mode-setting.asciidoc[] + include::troubleshooting/corruption-issues.asciidoc[] include::troubleshooting/disk/fix-data-node-out-of-disk.asciidoc[] diff --git a/docs/reference/troubleshooting/data/source-mode-setting.asciidoc b/docs/reference/troubleshooting/data/source-mode-setting.asciidoc new file mode 100644 index 0000000000000..0ab6327120436 --- /dev/null +++ b/docs/reference/troubleshooting/data/source-mode-setting.asciidoc @@ -0,0 +1,49 @@ +[[troubleshoot-migrate-source-mode]] +== Configuring source mode in mappings is deprecated and replaced by an index setting + +Index <> mode was previously configured in mappings as follows: + +[source,js] +---- +"mappings": { + "source": { + "mode": "synthetic" + }, + "foo": { + "type": "keyword" + }, + "bar": { + "type": "keyword" + } +} +---- +// NOTCONSOLE + +Starting with version 8.18, this method for configuring the source mode is considered +deprecated and replaced by index setting `index.mapping.source.mode` that accepts the +same values: `stored`, `synthetic` and `disabled`. The index setting can be +used as follows: + +[source,js] +---- +"settings": { + "index.mapping.source.mode": "synthetic" +} +"mappings": { + "foo": { + "type": "keyword" + }, + "bar": { + "type": "keyword" + } +} +---- +// NOTCONSOLE + +Existing indexes using the deprecated method for configuring the source mode are not +affected, but creating new indexes raises warnings and will not be supported in a future +release. This can be an issue for data streams and other indexes that get regularly +generated using component templates. To avoid these problems, identify all affected +component templates, as shown in the <>, +and update them to use setting `index.mapping.source.mode` instead of +`mappings.source.mode`, according to the examples above.