From 6d1e660e0e0e225ef30036fe4f5cfcc3733fb85d Mon Sep 17 00:00:00 2001 From: Edward Cheng Date: Wed, 10 Jul 2024 17:27:19 +1000 Subject: [PATCH] update multi-pipelines configmap for logstash --- .../logstash/app/pipelines.yaml | 29 +++++++++++++++++++ .../logstash/pipelines/misc.conf | 8 ----- .../logstash/pipelines/omada.conf | 8 ----- .../logstash/pipelines/pipelines.yaml | 4 --- 4 files changed, 29 insertions(+), 20 deletions(-) create mode 100644 kubernetes/infrastructure/logstash/app/pipelines.yaml delete mode 100644 kubernetes/infrastructure/logstash/pipelines/misc.conf delete mode 100644 kubernetes/infrastructure/logstash/pipelines/omada.conf delete mode 100644 kubernetes/infrastructure/logstash/pipelines/pipelines.yaml diff --git a/kubernetes/infrastructure/logstash/app/pipelines.yaml b/kubernetes/infrastructure/logstash/app/pipelines.yaml new file mode 100644 index 0000000..4a951ea --- /dev/null +++ b/kubernetes/infrastructure/logstash/app/pipelines.yaml @@ -0,0 +1,29 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: logstash-pipelines + namespace: logstash +data: + pipelines.yaml: | + - pipeline.id: omada + path.config: "/opt/bitnami/logstash/config/omada.conf" + - pipeline.id: misc + path.config: "/opt/bitnami/logstash/config/misc.conf" + omada.conf: | + input { + file { + path => "/tmp/omada" + } + } + output { + stdout { } + } + misc.conf: | + input { + file { + path => "/tmp/misc" + } + } + output { + stdout { } + } \ No newline at end of file diff --git a/kubernetes/infrastructure/logstash/pipelines/misc.conf b/kubernetes/infrastructure/logstash/pipelines/misc.conf deleted file mode 100644 index f853a58..0000000 --- a/kubernetes/infrastructure/logstash/pipelines/misc.conf +++ /dev/null @@ -1,8 +0,0 @@ -input { - file { - path => "/tmp/misc" - } -} -output { - stdout { } -} \ No newline at end of file diff --git a/kubernetes/infrastructure/logstash/pipelines/omada.conf b/kubernetes/infrastructure/logstash/pipelines/omada.conf deleted file mode 100644 index a3e87b7..0000000 --- a/kubernetes/infrastructure/logstash/pipelines/omada.conf +++ /dev/null @@ -1,8 +0,0 @@ -input { - file { - path => "/tmp/omada" - } -} -output { - stdout { } -} \ No newline at end of file diff --git a/kubernetes/infrastructure/logstash/pipelines/pipelines.yaml b/kubernetes/infrastructure/logstash/pipelines/pipelines.yaml deleted file mode 100644 index 558f4c1..0000000 --- a/kubernetes/infrastructure/logstash/pipelines/pipelines.yaml +++ /dev/null @@ -1,4 +0,0 @@ -- pipeline.id: omada - path.config: "/opt/bitnami/logstash/config/omada.conf" -- pipeline.id: misc - path.config: "/opt/bitnami/logstash/config/misc.conf" \ No newline at end of file