mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 21:07:58 +08:00
fix(opensearch): Added @timestamp field for opensearch localhost (#5556)
This commit is contained in:
@ -60,6 +60,7 @@ transforms:
|
|||||||
- plus_1_events
|
- plus_1_events
|
||||||
source: |-
|
source: |-
|
||||||
.timestamp = from_unix_timestamp!(.created_at, unit: "seconds")
|
.timestamp = from_unix_timestamp!(.created_at, unit: "seconds")
|
||||||
|
."@timestamp" = from_unix_timestamp(.created_at, unit: "seconds") ?? now()
|
||||||
|
|
||||||
sdk_transformed:
|
sdk_transformed:
|
||||||
type: throttle
|
type: throttle
|
||||||
|
|||||||
@ -493,7 +493,7 @@ impl OpenSearchQueryBuilder {
|
|||||||
let range = json!(time_range);
|
let range = json!(time_range);
|
||||||
filter_array.push(json!({
|
filter_array.push(json!({
|
||||||
"range": {
|
"range": {
|
||||||
"timestamp": range
|
"@timestamp": range
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user