blob: cb2ceb4445bb510e590c17a3268184e96327625d (
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 => "message"
}
}
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
|