Collect /var/log to es through fluent bit

This commit is contained in:
2023-02-18 08:53:04 +11:00
parent 986928aad0
commit 574131b5bc
+17 -1
View File
@@ -226,7 +226,14 @@ spec:
Docker_Mode On
Docker_Mode_Flush 5
Docker_Mode_Parser docker
[INPUT]
Name exec
Tag host_exec.*
Command ls /var/log
Interval_Sec 5
Interval_NSec 0
Buf_Size 8mb
Oneshot false
[INPUT]
Name systemd
Tag host.*
@@ -338,6 +345,15 @@ spec:
Retry_Limit 20
Replace_Dots On
Suppress_Type_Name On
[OUTPUT]
Name es
Match host_exec.*
Host elasticsearch.es.svc.cluster.local
Port 9200
Index logs-node.%Y%m
Retry_Limit 20
Replace_Dots On
Suppress_Type_Name On
## https://docs.fluentbit.io/manual/pipeline/parsers
customParsers: |