Fluent-bit tail with hostPath not reading #6016
Replies: 1 comment
-
Just found, #1118 FYI: input-kubernetes.conf: | and input-tokenization-kubernetes.conf: | |
Beta Was this translation helpful? Give feedback.
-
Just found, #1118 FYI: input-kubernetes.conf: | and input-tokenization-kubernetes.conf: | |
Beta Was this translation helpful? Give feedback.
-
With-in my K8S one of the container writes logs to "/opt/logs/mastercard/JSON/*.log"
bash-4.2# ls
bin cloudwatch.so configs etc firehose.so kinesis.so licenses log parsers
bash-4.2# cd bin/
bash-4.2# ./fluent-bit --version
Fluent Bit v1.5.0
I have fluent-bit.yaml with, First three sections work fine.
@include input-kubernetes.conf
@include filter-kubernetes.conf
@include output-elasticsearch.conf
@include input-tokenization-kubernetes.conf
@include output-tokenization-elasticsearch.conf
For the tokenization piece, I am trying to read from the host path "/opt/bizmetrics"
Tried below options
Option 1) volumeMounts and volume defined in fluent-bit.yaml
Option 2) volumeMounts and volume defined in app-helm-values.yaml
Option 3) in Dockerfile gave -v:
volumeMounts:
name: bizmetrics-optlogs
mountPath: /opt/logs/mastercard/JSON
volumes:
name: bizmetrics-optlogs
hostPath:
path: /opt/bizmetrics
type: DirectoryOrCreate
In all the Options above, I can see the log files at /opt/logs/mastercard/JSON/bzmetrics.json
But, can't find the hostPath "/opt/bizmetrics" on the node and hence no index and data in my ElasticSearch.
Beta Was this translation helpful? Give feedback.
All reactions