mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 12:06:56 +08:00
fix(opensearch): Added @timestamp field for opensearch localhost (#5556)
This commit is contained in:
@ -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
|
||||
|
||||
@ -493,7 +493,7 @@ impl OpenSearchQueryBuilder {
|
||||
let range = json!(time_range);
|
||||
filter_array.push(json!({
|
||||
"range": {
|
||||
"timestamp": range
|
||||
"@timestamp": range
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user