# Tried to load a plugin's code, but failed. path=\>"logstash/filters/\<filter\_name\>"

**URL:** <https://discuss.elastic.co/t/tried-to-load-a-plugins-code-but-failed-path-logstash-filters-filter-name/282923>\
**Category:** Logstash\
**Created:** [August 31, 2021, 12:57pm UTC](https://discuss.elastic.co/t/tried-to-load-a-plugins-code-but-failed-path-logstash-filters-filter-name/282923 "2021-08-31T12:57:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![raiz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/raiz/32/92855_2.png) [@raiz](https://discuss.elastic.co/u/raiz)\
**Post date:** [August 31, 2021, 12:57pm UTC](https://discuss.elastic.co/t/tried-to-load-a-plugins-code-but-failed-path-logstash-filters-filter-name/282923/1 "2021-08-31T12:57:51Z")

</div>

Hello,  
I'm trying to use my filter plugin in a conf file. It's being properly installed via an offline plugin pack, but errors when running logstash:

```auto
ERROR registry:123 - Tried to load a plugin's code, but failed. {:exception=>#<LoadError: no such file to load -- logstash/filters/pubsub-mysql>, :path=>"logstash/filters/pubsub-mysql", :type=>"filter", :name=>"pubsub-mysql"}

```

I've tried adding a `path` in Gemfile (`vendor/local_gems/...`), but it didn't help.  
What could be the issue here?

Thanks

---

<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:** [September 28, 2021, 12:58pm UTC](https://discuss.elastic.co/t/tried-to-load-a-plugins-code-but-failed-path-logstash-filters-filter-name/282923/2 "2021-09-28T12:58:07Z")

</div>

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