%- plugin_name = name -%> [[plugins-<%= section %>s-<%= name %>]] === <%= name %> <% unless default_plugin %> NOTE: This is a community-maintained plugin! It does not ship with Logstash by default, but it is easy to install by running `bin/plugin install logstash-<%= section %>-<%= plugin_name %>`. <% end %> <%= description %> ==== Synopsis <% if sorted_attributes.count > 0 -%> This plugin supports the following configuration options: <% else -%> This plugin has no configuration options. <% end -%> <%= synopsis -%> <% if sorted_attributes.count > 0 -%> ==== Details <% sorted_attributes.each do |name, config| -%> <% next if config[:obsolete] if name.is_a?(Regexp) name = "/" + name.to_s.gsub(/^\(\?-mix:/, "").gsub(/\)$/, "") + "/" is_regexp = true else is_regexp = false end -%> [[plugins-<%= section%>s-<%= plugin_name%>-<%= name%>]] ===== `<%= name %>` <%= " (DEPRECATED)" if config[:deprecated] %> <% if config[:required] -%> * This is a required setting. <% end -%> <% if config[:deprecated] -%> * DEPRECATED WARNING: This configuration item is deprecated and may not be available in future versions. <% end -%> <% if is_regexp -%> * The configuration attribute name here is anything that matches the above regular expression. <% end -%> <% if config[:validate].is_a?(Symbol) -%> * Value type is <<<%= config[:validate] %>,<%= config[:validate] %>>> <% elsif config[:validate].nil? -%>