logstash/docs/static/plugin-generator.asciidoc
2016-06-01 12:12:42 +00:00

19 lines
803 B
Text

[[plugin-generator]]
== Generating Plugins
You can now create your own Logstash plugin in seconds! The generate subcommand of `bin/logstash-plugin` creates the foundation
for a new Logstash plugin with templatized files. It creates the right directory structure, gemspec files and dependencies so you
can start adding custom code process data with Logstash.
**Example Usage**
[source,sh]
--------------------------------------------
bin/logstash-plugin generate --type input --name xkcd --path ~/ws/elastic/plugins
-------------------------------------------
* `--type`: Type of plugin - input, filter, output and codec
* `--name`: Name for the new plugin
* `--path`: Directory path where the new plugin structure will be created. If not specified, it will be '
created in the current directory.