From 31ada07043e3b60215783c084321210445ee82b1 Mon Sep 17 00:00:00 2001 From: makefunstuff Date: Sat, 29 Jun 2024 22:59:56 +0300 Subject: add beat --- tools/eck-operator/templates/logstash.yaml | 35 +++++++++++++++++++++++++----- 1 file changed, 29 insertions(+), 6 deletions(-) (limited to 'tools/eck-operator/templates/logstash.yaml') diff --git a/tools/eck-operator/templates/logstash.yaml b/tools/eck-operator/templates/logstash.yaml index 13e5128..98755b9 100644 --- a/tools/eck-operator/templates/logstash.yaml +++ b/tools/eck-operator/templates/logstash.yaml @@ -3,11 +3,34 @@ kind: Logstash metadata: name: log-storage spec: - version: "8.14.1" count: 1 elasticsearchRefs: - - name: log-storage - clusterName: default - config: - pipeline.workers: 4 - log.level: debug + - name: log-storage + clusterName: default + version: 8.14.1 + pipelines: + - pipeline.id: main + config.string: | + input { + beats { + port => 5044 + } + } + output { + elasticsearch { + hosts => [ "${QS_ES_HOSTS}" ] + user => "${QS_ES_USER}" + password => "${QS_ES_PASSWORD}" + ssl_certificate_authorities => "${QS_ES_SSL_CERTIFICATE_AUTHORITY}" + } + } + services: + - name: beats + service: + spec: + type: NodePort + ports: + - port: 5044 + name: "filebeat" + protocol: TCP + targetPort: 5044 -- cgit 1.4.1-2-gfad0