ClusterLogForwarder Invalid value: "array": spec.outputDefaults in body must be of type object: "array"

Solution Verified - Updated -

Issue

  • Invalid type error when trying to create the ClusterLogForwarder CR
$ oc create -f ClusterLogForwarder.yaml
The ClusterLogForwarder "instance" is invalid: spec.outputDefaults: Invalid value: "array": spec.outputDefaults in body must be of type object: "array"
  • Using this configuration as per the documentation:
  outputDefaults:
   - elasticsearch:
     structuredTypeKey: openshift.labels.log-format
     structuredTypeName: nologformat

Environment

  • Red Hat OpenShift Container Platform
    • 4.6+
  • Red Hat OpenShift Logging
    • 5.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content