IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
You can add your own input, codec, filter, or output plugins to Logstash.
Plugins can be developed and deployed independently of the Logstash core. Here are some documents to guide you through the process of coding and deploying your own plugin:
You have three options for shutting down a plugin: stop, stop?, and close.
-
Call the
stopmethod from outside the plugin thread. This method signals the plugin to stop. -
The
stop?method returnstruewhen thestopmethod has already been called for that plugin. -
The
closemethod performs final bookkeeping and cleanup after the plugin’srunmethod and the plugin’s thread both exit. Theclosemethod is a a new name for the method known asteardownin previous versions of Logstash.
The shutdown, finished, finished?, running?, and terminating? methods are redundant and no longer present in the
Plugin Base class.
Sample code for the plugin shutdown APIs is available.
We also welcome contributions and bug fixes to the Logstash core feature set.
Please read through our contribution guide, and the Logstash readme document.