# How to use --pluginpath in logstash 2.3.4

**URL:** <https://discuss.elastic.co/t/how-to-use-pluginpath-in-logstash-2-3-4/56087>\
**Category:** Logstash\
**Created:** [July 21, 2016, 10:31am UTC](https://discuss.elastic.co/t/how-to-use-pluginpath-in-logstash-2-3-4/56087 "2016-07-21T10:31:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lyne\_Lin](https://avatars.discourse-cdn.com/v4/letter/l/8dc957/32.png) [@Lyne\_Lin](https://discuss.elastic.co/u/Lyne_Lin)\
**Post date:** [July 21, 2016, 10:31am UTC](https://discuss.elastic.co/t/how-to-use-pluginpath-in-logstash-2-3-4/56087/1 "2016-07-21T10:31:08Z")

</div>

I read official tutorial, searched google and this forum, but still failed to get my local aaa.rb filter work correctly. Please help to see whether I missed something.

In logstash 2.3.4 (/opt/logstash),

1. put my aaa.rb filter in /opt/logstash
2. use this aaa filter in test.conf
3. issue the command: ./bin/logstash --pluginpath /opt/logstash/ -f test.conf --configtest --debug

Error shows:  
Plugin not defined in namespace, checking for plugin file {:type=\>"filter", :name=\>"aaa", :path=\>"logstash/filters/aaa", :level=\>:debug, :file=\>"logstash/plugin.rb", :line=\>"76", :method=\>"lookup"}  
The given configuration is invalid. Reason: Couldn't find any filter plugin named 'aaa'. Are you sure this is correct? Trying to load the aaa filter plugin resulted in this error: no such file to load -- logstash/filters/aaa {:level=\>:fatal, :file=\>"logstash/agent.rb", :line=\>"189", :method=\>"execute"}

it seems my logstash didn't find the filter from /opt/logstash, instead, it searches from the default directory.

This error can be avoid by moving aaa.rb into /opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.4-java/lib/logstash/filters, but I don't think it is a formal way.

Does anyone have some clue?

---

<div class="post-metadata">

**Author:** ![Lyne\_Lin](https://avatars.discourse-cdn.com/v4/letter/l/8dc957/32.png) [@Lyne\_Lin](https://discuss.elastic.co/u/Lyne_Lin)\
**Post date:** [July 26, 2016, 7:01am UTC](https://discuss.elastic.co/t/how-to-use-pluginpath-in-logstash-2-3-4/56087/2 "2016-07-26T07:01:37Z")

</div>

Is there anyone to provide any hint?

---

<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:** [July 6, 2017, 4:46am UTC](https://discuss.elastic.co/t/how-to-use-pluginpath-in-logstash-2-3-4/56087/3 "2017-07-06T04:46:31Z")

</div>


