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

[release-5.4] Fluent config format is hard to read via configmap

XMLWordPrintable

    • False
    • False
    • NEW
    • VERIFIED
    • Hide
      Before this update, editing the Collector configuration using `oc edit` was difficult because it had inconsistent use of white-space. This change introduces logic to normalize and format the config prior to any updates by the Operator so that it is easy to edit using `oc edit`.
      Show
      Before this update, editing the Collector configuration using `oc edit` was difficult because it had inconsistent use of white-space. This change introduces logic to normalize and format the config prior to any updates by the Operator so that it is easy to edit using `oc edit`.
    • Logging (Core) - Sprint 216, Logging (Core) - Sprint 218, Logging (Core) - Sprint 219

      Summary

      As an admin of OpenShift Logging
      I want the fluentd config to be well formed when viewing it in the configmap
      so that it is easier to read and edit

      Acceptance Criteria

      • Verify the fluentd.conf is properly indented a newline delimited when editing the configmap
        Sample:
        <system>
          log_level "#{ENV['LOG_LEVEL'] || 'warn'}"
        </system>
        
        # Prometheus Monitoring
        <label @ES_1>
          #remove structured field if present
          <filter **>
            @type record_modifier
            remove_keys structured
          </filter>
          
          #flatten labels to prevent field explosion in ES
          <filter **>
            @type record_transformer
            enable_ruby true
            <record>
              foo bar
            </record>
          </filter>
        </label>
        

              jcantril@redhat.com Jeffrey Cantrill
              jcantril@redhat.com Jeffrey Cantrill
              Anping Li Anping Li
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: