mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
parent
bdba81b199
commit
691179f719
2 changed files with 8 additions and 7 deletions
|
@ -19,19 +19,20 @@ class LogStash::Plugin
|
|||
# for a specific plugin.
|
||||
config :enable_metric, :validate => :boolean, :default => true
|
||||
|
||||
# Add a unique `ID` to the plugin instance, this `ID` is used for tracking
|
||||
# information for a specific configuration of the plugin.
|
||||
# Add a unique `ID` to the plugin configuration. If no ID is specified, Logstash will generate one.
|
||||
# It is strongly recommended to set this ID in your configuration. This is particulary useful
|
||||
# when you have two or more plugins of the same type, for example, if you have 2 grok filters.
|
||||
# Adding a named ID in this case will help in monitoring Logstash when using the monitoring APIs.
|
||||
#
|
||||
# [source,ruby]
|
||||
# ---------------------------------------------------------------------------------------------------
|
||||
# output {
|
||||
# stdout {
|
||||
# id => "ABC"
|
||||
# id => "my_plugin_id"
|
||||
# }
|
||||
# }
|
||||
# ---------------------------------------------------------------------------------------------------
|
||||
#
|
||||
# If you don't explicitely set this variable Logstash will generate a unique name.
|
||||
config :id, :validate => :string
|
||||
|
||||
def hash
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
[[plugins-<%= section %>s-<%= name %>]]
|
||||
=== <%= name %>
|
||||
|
||||
Version: <%=version%>
|
||||
Released on: <%=release_date%>
|
||||
<%=changelog_url%>[Changelog]
|
||||
* Version: <%=version%>
|
||||
* Released on: <%=release_date%>
|
||||
* <%=changelog_url%>[Changelog]
|
||||
|
||||
<% unless default_plugin? %>
|
||||
NOTE: This plugin does not ship with Logstash by default, but it is easy to install by running `bin/logstash-plugin install logstash-<%= section %>-<%= name %>`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue