Have installed daemonset but pod logs are not exporting
jamesla opened this issue · 1 comments
jamesla commented
I have fluentd set up to export logs to elastic which is working nicely for kubernetes events etc using the manifest in this repository.
However the template does not appear to be exporting any container or pod logs.
I've also noticed that when viewing the logs of the daemon log they are spewing garbage (screenshot attached).
My questions are:
- By default should pod or container logs (stdout) be exported?
- What is the garbage in the screenshot and is this a known issue?
jamesla commented
fixed with:
- name: FLUENT_CONTAINER_TAIL_EXCLUDE_PATH
value: /var/log/containers/fluent*
- name: FLUENT_CONTAINER_TAIL_PARSER_TYPE
value: /^(?<time>.+) (?<stream>stdout|stderr)( (?<logtag>.))? (?<log>.*)$/