mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
Update plugin manager --path.plugins (#5690)
The plugin manager `--path.plugins` (old --pluginpath) is completely wrong in the documentation. It cost me FOUR hours to find the bug and I hope this fix will remove pain for other developers. This change should be backported to the current documentation. Fixes #5707
This commit is contained in:
parent
aa50f75edf
commit
707a979a00
1 changed files with 4 additions and 1 deletions
5
docs/static/plugin-manager.asciidoc
vendored
5
docs/static/plugin-manager.asciidoc
vendored
|
@ -62,9 +62,12 @@ bin/logstash-plugin install /path/to/logstash-output-kafka-1.0.0.gem
|
|||
Using the Logstash `--path.plugins` flag, you can load a plugin source code located on your file system. Typically this is used by
|
||||
developers who are iterating on a custom plugin and want to test it before creating a ruby gem.
|
||||
|
||||
The path needs to be in a specific directory hierarchy: `PATH/logstash/TYPE/NAME.rb`, where TYPE is 'inputs' 'filters', 'outputs' or 'codecs' and NAME is the name of the plugin.
|
||||
|
||||
[source,shell]
|
||||
----------------------------------
|
||||
bin/logstash --path.plugins /opt/shared/lib/logstash/input/my-custom-plugin-code.rb
|
||||
# supposing the code is in /opt/shared/lib/logstash/inputs/my-custom-plugin-code.rb
|
||||
bin/logstash --path.plugins /opt/shared/lib
|
||||
----------------------------------
|
||||
|
||||
[[updating-plugins]]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue