Generating Plugins

You can now create your own Logstash plugin in seconds! The generate subcommand of bin/logstash-plugin creates the foundationfor a new Logstash plugin with templatized files. It creates the correct directory structure, gemspec files, and dependencies so youcan start adding custom code to process data with Logstash.

Example Usage

bin/logstash-plugin generate --type input --name xkcd --path ~/ws/elastic/plugins
  • --type: Type of plugin - input, filter, output, or codec
  • --name: Name for the new plugin
  • --path: Directory path where the new plugin structure will be created. If not specified, it will becreated in the current directory.