sabre1041 / openshift-logforwarding-splunk

Demonstration of forwarding logs from OpenShift to Splunk
Apache License 2.0
31 stars 26 forks source link

Not able to forward logs via fluentdforwarder #18

Open Shalu22111 opened 2 years ago

Shalu22111 commented 2 years ago

I am using Openshift Cluster version 4.8, while deploying the LogForwarding yaml file, it is throwing an error stating: no matches for kind "LogForwarding" in version "logging.openshift.io/v1alpha1". Due to which it is not creating the Fluentdforwader instance and logs are not being transferred to Splunk. While deploying Splunk statefulset yaml file, it is throwing error: create Pod openshift-logforwarding-splunk-0 in StatefulSet openshift-logforwarding-splunk failed error: Pod "openshift-logforwarding-splunk-0" is invalid: spec.volumes[1].name: Duplicate value: "openshift-logforwarding-splunk".

Please help me to resolve this issue as I am not able to create fluentdforwarder and splunk statefulset resources.

os-learner commented 2 years ago

How are you deploying the resources? If you are using Helm, it should install log-forwarding-instance.yaml not log-forwarding-instance-tp.yaml. It looks like it is trying to install on an OpenShift Platform lower than 4.3.