kube-logging / logging-operator

Logging operator for Kubernetes
https://kube-logging.dev
Apache License 2.0
1.54k stars 329 forks source link

logging rancher-logging-fluentd-configcheck-8c46b65d error #992

Closed raoping2017 closed 1 year ago

raoping2017 commented 2 years ago

Bugs should be filed for issues encountered whilst operating logging-operator. You should first attempt to resolve your issues through the community support channels, e.g. Slack, in order to rule out individual configuration errors. #logging-operator Please provide as much detail as possible.

Describe the bug: 2022-04-29 03:42:44 +0000 [error]: config error file="/fluentd/etc/fluent.conf" error_class=Fluent::ConfigError error="outfile: `/var/log/logging/file/a.202204290340**.log` is not writable"

Expected behaviour: a new flow and a new output created, yaml info:

output yaml: apiVersion: logging.banzaicloud.io/v1beta1 kind: Output metadata: creationTimestamp: "2022-04-29T01:46:48Z" generation: 1 managedFields:

flow yaml: apiVersion: logging.banzaicloud.io/v1beta1 kind: Flow metadata: creationTimestamp: "2022-04-29T03:42:42Z" generation: 1 managedFields:

Steps to reproduce the bug: a new rancher-logging-fluentd-configcheck-xxxxx pod created when a new flow created, and error as Describe the bug

Environment details: rancher 2.6.3

/kind bug

ahma commented 2 years ago

@raoping2017 could you share us the logging-operator, fluend, fluentbit versions pls ?

sureshgoli25 commented 2 years ago

We solved this problem by setting like below in values file of the logging chart provided by rancher in 2.6.3

loggingOverlay:
  spec:
    fluentd:
      fluentOutLogrotate:
        age: '10'
        enabled: true
        path: /buffers/logs/out
        size: '10485760'
      logLevel: debug
stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions!