ClusterLogForwarder Invalid value: "array": spec.outputDefaults in body must be of type object: "array"
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.