Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom plugins issue #144

Open
kostaatsk opened this issue Dec 19, 2016 · 0 comments
Open

Custom plugins issue #144

kostaatsk opened this issue Dec 19, 2016 · 0 comments

Comments

@kostaatsk
Copy link
Contributor

Hello,

There seems to be an issue with the documentation instructions for custom plugins

It says:
In the plugin code, you can reference base plugins with var base_filter = require('lib/base_filter');

Unfortunately you cannot do that because base_filter.js requires './base_component' and it will not be found as a relative file to your /var/my_plugins/filters or /var/db/node-logstash/custom_plugins/filters

For example if you try to require('lib/base_filter_buffer'), base_filter_buffer will be required because it exists in NODE_PATH but you will get the following error because base_filter_buffer extends base_filter

ERROR Error: Cannot find module './base_filter'

As a temporary solution, I am deploying my custom filters to /opt/node-logstash/lib/filters/ but it would be nice if you can correct this or find a better solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant