Fluentbit kubernetes - Indexing based on namespace #8384
Unanswered
meektechie
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Folks,
We want to create the index based on namespace, for eg: if we have a, b, c namespaces the index should be test-a-, test-b-, test-c-* (here test is the prefix). Currently we have only one index for the whole cluster but we want it as requested.
config:
service: |
[SERVICE]
Daemon Off
Flush 5
Log_Level info
Parsers_File parsers.conf
Parsers_File custom_parsers.conf
HTTP_Server On
HTTP_Listen 0.0.0.0
HTTP_Port 2020
Health_Check On
## https://docs.fluentbit.io/manual/pipeline/inputs
inputs: |
[INPUT]
Name tail
Path /var/log/containers/.log
multiline.parser docker, cri
Tag kube.${$.kubernetes.namespace_name}.
Mem_Buf_Limit 50MB
Skip_Long_Lines On
parser docker
[INPUT]
Name systemd
Tag host.*
Systemd_Filter _SYSTEMD_UNIT=kubelet.service
Read_From_Tail On
## https://docs.fluentbit.io/manual/pipeline/filters
filters: |
[FILTER]
Name kubernetes
Match kube.*
Merge_Log On
Keep_Log Off
K8S-Logging.Parser On
K8S-Logging.Exclude On
Merge_Log_Trim On
Labels On
Annotations Off
Beta Was this translation helpful? Give feedback.
All reactions