# Logstash filter plugin .gem file install on kubernetes Can't file local file

**URL:** <https://discuss.elastic.co/t/logstash-filter-plugin-gem-file-install-on-kubernetes-cant-file-local-file/320948>\
**Category:** Logstash\
**Created:** [December 10, 2022, 12:46pm UTC](https://discuss.elastic.co/t/logstash-filter-plugin-gem-file-install-on-kubernetes-cant-file-local-file/320948 "2022-12-10T12:46:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jijesh\_vu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jijesh_vu/32/113576_2.png) [@jijesh\_vu](https://discuss.elastic.co/u/jijesh_vu)\
**Post date:** [December 10, 2022, 12:46pm UTC](https://discuss.elastic.co/t/logstash-filter-plugin-gem-file-install-on-kubernetes-cant-file-local-file/320948/1 "2022-12-10T12:46:30Z")

</div>

Im trying to install a custom .gem filter plugin using kubernetes StatefulSet. The gem file is in `/tmp` directory. pod log is showing `ERROR: File not found for: file:///tmp/logstash-filter-kubernetes-0.3.1.gem, message: Can't file local file /tmp/logstash-filter-kubernetes-0.3.1.gem`

Below is StatefulSet code snippet.

```auto
image: "grafana/logstash-output-loki:1.0.1"
        imagePullPolicy: "IfNotPresent"
        command:
            - '/bin/sh'
            - '-c'
            - 'logstash-plugin install --no-verify file:///tmp/logstash-filter-kubernetes-0.3.1.gem && logstash -f /usr/share/logstash/pipeline/logstash.conf'
    

```

---

<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 7, 2023, 12:47pm UTC](https://discuss.elastic.co/t/logstash-filter-plugin-gem-file-install-on-kubernetes-cant-file-local-file/320948/2 "2023-01-07T12:47:18Z")

</div>

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