Skip to content

Commit c3f4034

Browse files
authored
[DOCS] Note that DS timestamp field mapping changes require reindex (#58444) (#58517)
With #58096, data streams now track the timestamp field mapping outside of the template associated with the stream. This means you can no longer update the timestamp field mapping using template changes. This updates the associated data stream docs.
1 parent 1f2e05c commit c3f4034

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

docs/reference/data-streams/change-mappings-and-settings.asciidoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,11 @@ POST /logs/_rollover/
133133
----
134134
// TEST[continued]
135135
====
136+
+
137+
IMPORTANT: You cannot use these methods to change the mapping of a data stream's
138+
<<create-a-data-stream-template,timestamp field>>. To change the timestamp
139+
field's mapping, you must reindex the data stream. See
140+
<<data-streams-use-reindex-to-change-mappings-settings>>.
136141

137142
* To apply mapping and setting changes to all existing backing indices and
138143
future ones, you must create a new data stream and reindex your data into it.

docs/reference/data-streams/set-up-a-data-stream.asciidoc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,13 @@ this pattern.
138138
stream.
139139

140140
* A <<date,`date`>> or <<date_nanos,`date_nanos`>> field mapping for the
141-
timestamp field specified in the `timestamp_field` property.
141+
timestamp field specified in the `timestamp_field` property.
142+
+
143+
IMPORTANT: Carefully consider the timestamp field's mapping, including
144+
<<mapping-params,mapping parameters>> such as <<mapping-date-format,`format`>>.
145+
Once the stream is created, you can only update the timestamp field's mapping by
146+
reindexing the data stream. See
147+
<<data-streams-use-reindex-to-change-mappings-settings>>.
142148

143149
* If you intend to use {ilm-init}, you must specify the
144150
<<configure-a-data-stream-ilm-policy,lifecycle policy>> in the

0 commit comments

Comments
 (0)