about summary refs log tree commit diff
path: root/tools/eck-operator/templates/logstash.yaml
blob: 98755b943f3b3ccbb293d0177e111151edf64430 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
apiVersion: logstash.k8s.elastic.co/v1alpha1
kind: Logstash
metadata:
  name: log-storage
spec:
  count: 1
  elasticsearchRefs:
    - 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