Forwarding logs to AWS CloudWatch fails with "ClusterLogForwarder input validation error"
Issue
- Configured OpenShift Logging to forward logs to AWS CloudWatch, but no collector Pod started and the following errors are seen in ClusterLogging and ClusterLogForwarder.
oc get ClusterLogging instance -o yaml
[...]
status:
collection:
logs:
fluentdStatus: {}
conditions:
- lastTransitionTime: "2022-11-10T08:15:59Z"
message: ClusterLogForwarder input validation error
reason: ClusterLogForwarder input validation error
status: "True"
type: CollectorDeadEnd
- lastTransitionTime: "2022-11-10T08:52:03Z"
message: curator is deprecated in favor of defining retention policy
reason: ResourceDeprecated
status: "True"
type: CuratorRemoved
curation: {}
logStore: {}
visualization: {}
oc get ClusterLogForwarder instance -o yaml
[...]
status:
conditions:
- lastTransitionTime: "2022-11-10T08:53:29Z"
message: 'all pipelines invalid: [test-logs]'
reason: Invalid
status: "False"
type: Ready
outputs:
cw-output:
- lastTransitionTime: "2022-11-10T08:53:29Z"
status: "True"
type: Ready
pipelines:
test-logs:
- lastTransitionTime: "2022-11-07T08:53:29Z"
message: 'invalid: unrecognized outputs: [cw], no valid outputs'
reason: Invalid
status: "False"
type: Ready
Environment
- Red Hat OpenShift Container Platform (RHOCP)
- 4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.