Uploaded image for project: 'OpenShift Logging'
  1. OpenShift Logging
  2. LOG-1774

The collector logs should be excluded in fluent.conf

XMLWordPrintable

    • False
    • False
    • NEW
    • OBSDA-108 - Distribute an alternate Vector Log Collector
    • VERIFIED
    • Hide
      Before this update, the collector was collecting its own logs due to a refactoring of the component name change. This could lead to a potential feed-back loop of the collector processing its own log that might result in memory and log message size issues. This update excludes collector logs from collection, resolving the issue.
      Show
      Before this update, the collector was collecting its own logs due to a refactoring of the component name change. This could lead to a potential feed-back loop of the collector processing its own log that might result in memory and log message size issues. This update excludes collector logs from collection, resolving the issue.
    • Logging (Core) - Sprint 208

      Description:
      The damonset had been renamed to collector in 5.x, the exclude_path should be updated accordingly.

      $cat fluent.conf
      @type tail
      @id container-input
      path "/var/log/containers/*.log"
      exclude_path ["/var/log/containers/fluentd-*_openshift-logging_*.log", "/var/log/containers/elasticsearch-*_openshift-logging_*.log", "/var/log/containers/kibana-*_openshift-logging_*.log"]
      pos_file "/var/lib/fluentd/pos/es-containers.log.pos"

      Steps to Reproduce:
      1. Deploy logging 5.3
      2. oc extract cm/collector --confirm; cat fluent.conf |grep -A 5 container-input

      Expected result:

      exclude_path ["/var/log/containers/collector-*_openshift-logging_*.log", "/var/log/containers/elasticsearch-*_openshift-logging_*.log", "/var/log/containers/kibana-*_openshift-logging_*.log"]

              jcantril@redhat.com Jeffrey Cantrill
              rhn-support-anli Anping Li
              Anping Li Anping Li
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: