Skip to content

Commit

Permalink
Add notice on timestamp field renaming in the data_stream mode of Ela…
Browse files Browse the repository at this point in the history
…sticsearch sink

Signed-off-by: Up Neck <[email protected]>
  • Loading branch information
up2neck committed Jan 17, 2025
1 parent aaa54ec commit 2dac288
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sinks/elasticsearch/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ pub enum ElasticsearchMode {
/// Ingests documents in bulk, using the bulk API `create` action.
///
/// Elasticsearch Data Streams only support the `create` action.
///
/// If the mode is set to `data_stream` and a `timestamp` field is present in a message,
/// Vector renames this field to the expected `@timestamp` to comply with the Elastic Common Schema.
DataStream,
}

Expand Down
3 changes: 3 additions & 0 deletions website/cue/reference/components/sinks/base/elasticsearch.cue
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,9 @@ base: components: sinks: elasticsearch: configuration: {
Ingests documents in bulk, using the bulk API `create` action.
Elasticsearch Data Streams only support the `create` action.
If the mode is set to `data_stream` and a `timestamp` field is present in a message,
Vector renames this field to the expected `@timestamp` to comply with the Elastic Common Schema.
"""
}
}
Expand Down

0 comments on commit 2dac288

Please sign in to comment.