Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

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

Sandeep Kumar732472204d83
diff --git a/config/vector.yaml b/config/vector.yaml
index 1511e09a05..17049677fe 100644
--- a/config/vector.yaml
+++ b/config/vector.yaml
@@ -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
diff --git a/crates/analytics/src/opensearch.rs b/crates/analytics/src/opensearch.rs
index 11ea4e4f7a..e74622a054 100644
--- a/crates/analytics/src/opensearch.rs
+++ b/crates/analytics/src/opensearch.rs
@@ -493,7 +493,7 @@ impl OpenSearchQueryBuilder {
let range = json!(time_range);
filter_array.push(json!({
"range": {
- "timestamp": range
+ "@timestamp": range
}
}));
}