fix(opensearch): Added @timestamp field for opensearch localhost (#5556)

This commit is contained in:
Sandeep Kumar
2024-08-07 21:06:54 +05:30
committed by GitHub
parent 9d44eaeb92
commit 732472204d
2 changed files with 2 additions and 1 deletions

View File

@ -60,6 +60,7 @@ transforms:
- plus_1_events
source: |-
.timestamp = from_unix_timestamp!(.created_at, unit: "seconds")
."@timestamp" = from_unix_timestamp(.created_at, unit: "seconds") ?? now()
sdk_transformed:
type: throttle

View File

@ -493,7 +493,7 @@ impl OpenSearchQueryBuilder {
let range = json!(time_range);
filter_array.push(json!({
"range": {
"timestamp": range
"@timestamp": range
}
}));
}