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

Fluent config format is hard to read via configmap

    XMLWordPrintable

Details

    • 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 configuration 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 configuration prior to any updates by the Operator so that it is easy to edit using `oc edit`.
    • Logging (Core) - Sprint 215

    Description

      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>
        

      Attachments

        Activity

          People

            jcantril@redhat.com Jeffrey Cantrill
            jcantril@redhat.com Jeffrey Cantrill
            Ishwar Kanse Ishwar Kanse
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: