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
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
fix(opensearch): Added date-suffixed indexes for opensearch locally (#5635)
Sandeep Kumarda5102efe299
diff --git a/config/vector.yaml b/config/vector.yamlindex 17049677fe..54ff25cab5 100644--- a/config/vector.yaml+++ b/config/vector.yaml@@ -71,7 +71,7 @@ transforms:window_secs: 60sinks:- opensearch_events:+ opensearch_events_1:type: elasticsearchinputs:- events@@ -93,9 +93,32 @@ sinks:- partition- topicbulk:- # Add a date prefixed index for better grouping- # index: "vector-{{ .topic }}-%Y-%m-%d"- index: "{{ .topic }}"+ index: "vector-{{ .topic }}"++ opensearch_events_2:+ type: elasticsearch+ inputs:+ - events+ endpoints:+ - "https://opensearch:9200"+ id_key: message_key+ api_version: v7+ tls:+ verify_certificate: false+ verify_hostname: false+ auth:+ strategy: basic+ user: admin+ password: 0penS3arc#+ encoding:+ except_fields:+ - message_key+ - offset+ - partition+ - topic+ bulk:+ # Add a date suffixed index for better grouping+ index: "vector-{{ .topic }}-%Y-%m-%d"opensearch_logs:type: elasticsearch@@ -112,7 +135,7 @@ sinks:user: adminpassword: 0penS3arc#bulk:- # Add a date prefixed index for better grouping+ # Add a date suffixed index for better grouping# index: "vector-{{ .topic }}-%Y-%m-%d"index: "logs-{{ .container_name }}-%Y-%m-%d"diff --git a/crates/analytics/docs/README.md b/crates/analytics/docs/README.mdindex da9a3c79f1..96218fc231 100644--- a/crates/analytics/docs/README.md+++ b/crates/analytics/docs/README.md@@ -108,11 +108,11 @@ global_search=trueTo view the data on the OpenSearch dashboard perform the following steps:-- Go to the OpenSearch Dashboard home and click on `Stack Management` under the Management tab+- Go to the OpenSearch Dashboard home and click on `Dashboards Management` under the Management tab- Select `Index Patterns`- Click on `Create index pattern`- Define an index pattern with the same name that matches your indices and click on `Next Step`- Select a time field that will be used for time-based queries- Save the index pattern-Now, head on to the `Discover` tab, to select the newly created index pattern and query the data\ No newline at end of file+Now, head on to `Discover` under the `OpenSearch Dashboards` tab, to select the newly created index pattern and query the data\ No newline at end of filediff --git a/docker/fluentd/conf/fluent.conf b/docker/fluentd/conf/fluent.confindex 785254a3b2..d0f7c861c3 100644--- a/docker/fluentd/conf/fluent.conf+++ b/docker/fluentd/conf/fluent.conf@@ -47,7 +47,25 @@index_name hyperswitch-payment-intent-eventsid_key payment_iduser admin- password admin+ password '0penS3arc#'+ ssl_verify false+ prefer_oj_serializer true+ reload_on_failure true+ reload_connections false+ request_timeout 120s+ bulk_message_request_threshold 10MB+ include_timestamp true+ </store>++ <store>+ @type opensearch+ host opensearch+ port 9200+ scheme https+ index_name fluentd-hyperswitch-payment-intent-events-%Y-%m-%d+ id_key payment_id+ user admin+ password '0penS3arc#'ssl_verify falseprefer_oj_serializer truereload_on_failure true@@ -55,6 +73,10 @@request_timeout 120sbulk_message_request_threshold 10MBinclude_timestamp true+ <buffer tag, time>+ timekey 10s+ timekey_wait 10s+ </buffer></store></match>@@ -73,7 +95,25 @@index_name hyperswitch-payment-attempt-eventsid_key attempt_iduser admin- password admin+ password '0penS3arc#'+ ssl_verify false+ prefer_oj_serializer true+ reload_on_failure true+ reload_connections false+ request_timeout 120s+ bulk_message_request_threshold 10MB+ include_timestamp true+ </store>++ <store>+ @type opensearch+ host opensearch+ port 9200+ scheme https+ index_name fluentd-hyperswitch-payment-attempt-events-%Y-%m-%d+ id_key attempt_id+ user admin+ password '0penS3arc#'ssl_verify falseprefer_oj_serializer truereload_on_failure true@@ -81,6 +121,10 @@request_timeout 120sbulk_message_request_threshold 10MBinclude_timestamp true+ <buffer tag, time>+ timekey 10s+ timekey_wait 10s+ </buffer></store></match>@@ -99,7 +143,25 @@index_name hyperswitch-refund-eventsid_key refund_iduser admin- password admin+ password '0penS3arc#'+ ssl_verify false+ prefer_oj_serializer true+ reload_on_failure true+ reload_connections false+ request_timeout 120s+ bulk_message_request_threshold 10MB+ include_timestamp true+ </store>++ <store>+ @type opensearch+ host opensearch+ port 9200+ scheme https+ index_name fluentd-hyperswitch-refund-events-%Y-%m-%d+ id_key refund_id+ user admin+ password '0penS3arc#'ssl_verify falseprefer_oj_serializer truereload_on_failure true@@ -107,6 +169,10 @@request_timeout 120sbulk_message_request_threshold 10MBinclude_timestamp true+ <buffer tag, time>+ timekey 10s+ timekey_wait 10s+ </buffer></store></match>@@ -134,4 +200,26 @@bulk_message_request_threshold 10MBinclude_timestamp true</store>++ <store>+ @type opensearch+ host opensearch+ port 9200+ scheme https+ index_name fluentd-hyperswitch-dispute-events-%Y-%m-%d+ id_key dispute_id+ user admin+ password '0penS3arc#'+ ssl_verify false+ prefer_oj_serializer true+ reload_on_failure true+ reload_connections false+ request_timeout 120s+ bulk_message_request_threshold 10MB+ include_timestamp true+ <buffer tag, time>+ timekey 10s+ timekey_wait 10s+ </buffer>+ </store></match>\ No newline at end of file