# FileBeat on OpenShift Cluster (RHOCS ) - Operation not permitted error

**URL:** <https://discuss.elastic.co/t/filebeat-on-openshift-cluster-rhocs-operation-not-permitted-error/343421>\
**Category:** Beats\
**Tags:** docker, filebeat\
**Created:** [September 20, 2023, 6:52am UTC](https://discuss.elastic.co/t/filebeat-on-openshift-cluster-rhocs-operation-not-permitted-error/343421 "2023-09-20T06:52:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinay.bommarati](https://avatars.discourse-cdn.com/v4/letter/v/a9adbd/32.png) [@vinay.bommarati](https://discuss.elastic.co/u/vinay.bommarati)\
**Post date:** [September 20, 2023, 6:52am UTC](https://discuss.elastic.co/t/filebeat-on-openshift-cluster-rhocs-operation-not-permitted-error/343421/1 "2023-09-20T06:52:22Z")

</div>

Hi All ,

I have used FIleBeat docker image and created a daemon set on our Openshift cluster and gave necessary permissions to run as a privileged container as per documentation.  
Here is my volume and volume mount section. Basically we are mounting /host/var/lib/pods from hostpath to /var/lib/pods so we can harvest the PVC logs.  
 ![WhatsApp Image 2023-09-20 at 13.59.08](https://us1.discourse-cdn.com/elastic/original/3X/2/a/2a442621b4afd99c3f42bc64e16c7c492d7723b3.jpeg)

But when POD comes up , it fails with the error stating as below. not sure , why kubelet/container trying to create /host directory. Underlying OS is Redhat Core OS which is immutable. Does that cause any issues or any one faced this earlier ?  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/4/b48440a47ba0dfaddfaba06e409cd26b98ad850a.png)

---

<div class="post-metadata">

**Author:** ![ropc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ropc/32/47022_2.png) [@ropc](https://discuss.elastic.co/u/ropc)\
**Post date:** [September 21, 2023, 2:16am UTC](https://discuss.elastic.co/t/filebeat-on-openshift-cluster-rhocs-operation-not-permitted-error/343421/2 "2023-09-21T02:16:09Z")

</div>

Hi @vinay.bommarati - I believe one of your team members has reached out to our Support team. We will be following-up through the Support case. Thank you 🙏

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 19, 2023, 4:16am UTC](https://discuss.elastic.co/t/filebeat-on-openshift-cluster-rhocs-operation-not-permitted-error/343421/3 "2023-10-19T04:16:32Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
