blob: 8d3a9b703be3ac2f4de5887b164fe61fda6cad77 (
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
37
38
39
40
41
|
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
}
}
filter {
json {
source => "[_source]"
}
}
output {
elasticsearch {
hosts => [ "${DEFAULT_ES_HOSTS}" ]
user => "${DEFAULT_ES_USER}"
password => "${DEFAULT_ES_PASSWORD}"
ssl_certificate_authorities => "${DEFAULT_ES_SSL_CERTIFICATE_AUTHORITY}"
}
}
services:
- name: beats
service:
spec:
type: NodePort
ports:
- port: 5044
name: "filebeat"
protocol: TCP
targetPort: 5044
|