From f19624d5bf9b8be9e16c11c162c9d1839c2f348a Mon Sep 17 00:00:00 2001 From: Bastian Hofmann Date: Fri, 19 Aug 2022 15:06:44 +0200 Subject: [PATCH 1/2] Add logging output forms for OpenSearch and Redis Signed-off-by: Bastian Hofmann --- shell/assets/translations/en-us.yaml | 9 + .../providers/opensearch.vue | 222 ++++++++++++++++++ .../providers/redis.vue | 142 +++++++++++ shell/models/logging.banzaicloud.io.output.js | 12 + 4 files changed, 385 insertions(+) create mode 100644 shell/edit/logging.banzaicloud.io.output/providers/opensearch.vue create mode 100644 shell/edit/logging.banzaicloud.io.output/providers/redis.vue diff --git a/shell/assets/translations/en-us.yaml b/shell/assets/translations/en-us.yaml index 57dbb9ed5e4..f822198fc5a 100644 --- a/shell/assets/translations/en-us.yaml +++ b/shell/assets/translations/en-us.yaml @@ -2556,6 +2556,15 @@ logging: clientKeyPass: Client Key Pass from Secret verifySsl: Verify SSL sslVersion: SSL Version + redis: + host: Host + port: Port + dbNumber: Redis database number + ttl: TTL for each key + password: Password from Secret + format: + title: Format + type: Type gelf: host: Host port: Port diff --git a/shell/edit/logging.banzaicloud.io.output/providers/opensearch.vue b/shell/edit/logging.banzaicloud.io.output/providers/opensearch.vue new file mode 100644 index 00000000000..9c2f94ebd20 --- /dev/null +++ b/shell/edit/logging.banzaicloud.io.output/providers/opensearch.vue @@ -0,0 +1,222 @@ + + + + diff --git a/shell/edit/logging.banzaicloud.io.output/providers/redis.vue b/shell/edit/logging.banzaicloud.io.output/providers/redis.vue new file mode 100644 index 00000000000..bb48b7e7536 --- /dev/null +++ b/shell/edit/logging.banzaicloud.io.output/providers/redis.vue @@ -0,0 +1,142 @@ + + + + diff --git a/shell/models/logging.banzaicloud.io.output.js b/shell/models/logging.banzaicloud.io.output.js index f2efae4c5cb..06d6ef5fcd6 100644 --- a/shell/models/logging.banzaicloud.io.output.js +++ b/shell/models/logging.banzaicloud.io.output.js @@ -76,6 +76,18 @@ export const PROVIDERS = [ labelKey: 'logging.outputProviders.newrelic', default: { }, }, + { + name: 'opensearch', + labelKey: 'logging.outputProviders.opensearch', + default: {}, + }, + { + name: 'redis', + labelKey: 'logging.outputProviders.redis', + default: { + port: 6379, db_number: 0, ttl: 0 + }, + }, { name: 'splunkHec', labelKey: 'logging.outputProviders.splunkHec', From d87bef50cfdfc9f8c3df4db0db3cd973f48ec7fa Mon Sep 17 00:00:00 2001 From: Catherine Luse Date: Mon, 21 Nov 2022 17:26:59 -0700 Subject: [PATCH 2/2] Minor changes to ClusterOutputs --- shell/assets/translations/en-us.yaml | 2 ++ .../providers/opensearch.vue | 9 --------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/shell/assets/translations/en-us.yaml b/shell/assets/translations/en-us.yaml index f822198fc5a..ecaf3356019 100644 --- a/shell/assets/translations/en-us.yaml +++ b/shell/assets/translations/en-us.yaml @@ -2695,6 +2695,8 @@ logging: configuration: Configuration outputProviders: elasticsearch: Elasticsearch + opensearch: OpenSearch + redis: Redis splunkHec: Splunk kafka: Kafka forward: Fluentd diff --git a/shell/edit/logging.banzaicloud.io.output/providers/opensearch.vue b/shell/edit/logging.banzaicloud.io.output/providers/opensearch.vue index 9c2f94ebd20..faa6670e1fb 100644 --- a/shell/edit/logging.banzaicloud.io.output/providers/opensearch.vue +++ b/shell/edit/logging.banzaicloud.io.output/providers/opensearch.vue @@ -192,15 +192,6 @@ export default {
-
- -