# Unable to start Filebeat due to hostPath volume

**URL:** <https://discuss.elastic.co/t/unable-to-start-filebeat-due-to-hostpath-volume/348831>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [December 7, 2023, 4:51pm UTC](https://discuss.elastic.co/t/unable-to-start-filebeat-due-to-hostpath-volume/348831 "2023-12-07T16:51:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Caesar](https://avatars.discourse-cdn.com/v4/letter/c/ecd19e/32.png) [@Caesar](https://discuss.elastic.co/u/Caesar)\
**Post date:** [December 7, 2023, 4:51pm UTC](https://discuss.elastic.co/t/unable-to-start-filebeat-due-to-hostpath-volume/348831/1 "2023-12-07T16:51:01Z")

</div>

Hello folks.

I am facing an issue when trying to deploy Filebeat because there is an OPA policy that prevents the use of hostPath volumes. Is there any alternative method to make it work without relying on hostPath?

```auto
 name: varlibdockercontainers
        hostPath:
          path: /var/lib/docker/containers
      - name: varlog
        hostPath:
          path: /var/log
      - name: varrundockersock
        hostPath:
          path: /var/run/docker.sock

```

---

<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:** [January 4, 2024, 6:51pm UTC](https://discuss.elastic.co/t/unable-to-start-filebeat-due-to-hostpath-volume/348831/2 "2024-01-04T18:51:50Z")

</div>

Closed on January 4, 2024, 6:51pm UTC

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