<commit_before>---
title: logstash docs for <%= section %>s/<%= name %>
layout: content_right
---
<h2><%= name %></h2>
<h3>Status: <a href="../plugin-status"><%= @plugin_status %></a></h3>

<%= description %>

<% if !@flags.empty? -%>
<h3> Flags </h3>

This plugin provides the following flags:

<dl>
<% @flags.each do |flag, description| -%>
<%# Prefix flag with plugin name. %>
  <dt> <%= flag.gsub(/^--/, "--#{name}-") %> </dt>
  <dd> <%= description %> </dd>
<% end -%>
</dl>

<% end -%>

<h3> Synopsis </h3>

This is what it might look like in your config file:

<pre><code><%= section %> {
  <%= name %> {
<% sorted_settings.each do |setting_name, config|
     next if config[:deprecated]
     if config[:validate].is_a?(Array) 
       annotation = "#{config[:validate].inspect}"
     else 
       annotation = "#{config[:validate]}"
     end

     if setting_name.is_a?(Regexp)
       setting_name = "/" + setting_name.to_s.gsub(/^\(\?-mix:/, "").gsub(/\)$/, "") + "/"
     end
     if config[:required]
       annotation += " (required)"
     else
       annotation += " (optional)"
     end
     annotation += ", default: #{config[:default].inspect}" if config[:default]
-%>
    <a href="#setting_<%= setting_name %>"><%= setting_name %></a> => ... # <%= annotation %>
<% end -%>
  }
}
</code></pre>

<h3> Details </h3>

<% sorted_settings.each do |setting_name, config| -%>
<%
     if setting_name.is_a?(Regexp)
       setting_name = "/" + setting_name.to_s.gsub(/^\(\?-mix:/, "").gsub(/\)$/, "") + "/"
       is_regexp = true
     else
       is_regexp = false
     end
-%>
<h4> 
  <a name="setting_<%= setting_name %>">
    <%= setting_name %><%= " (required setting)" if config[:required] %>
    <%= " <strong>DEPRECATED</strong>" if config[:deprecated] %>
</a>
</h4>

<ul>
<% if config[:deprecated] -%>
  <li> DEPRECATED WARNING: This config item is deprecated. It may be removed in a further version. </li>
<% end -%>
<% if is_regexp -%>
  <li> The configuration attribute name here is anything that matches the above regular expression. </li>
<% end -%>
<% if config[:validate].is_a?(Symbol) -%>
  <li> Value type is <%= config[:validate] %> </li>
<% elsif config[:validate].nil? -%>
  <li> Value type is string </li>
<% elsif config[:validate].is_a?(Array) -%>
  <li> Value can be any of: <%= config[:validate].map(&:inspect).join(", ") %> </li>
<% end -%>
<% if config[:default].nil? -%>
  <li> Default value is <%= config[:default].inspect %> </li>
<% else -%>
  <li> There is no default value for this setting. </li>
<% end -%>
</ul>

<%= config[:description] %>

<% end -%>

<hr>

This is documentation from <a href="https://github.com/logstash/logstash/blob/v<%= LOGSTASH_VERSION %>/<%= file %>"><%= file %></a><commit_msg>Fix default displays again<commit_after>---
title: logstash docs for <%= section %>s/<%= name %>
layout: content_right
---
<h2><%= name %></h2>
<h3>Status: <a href="../plugin-status"><%= @plugin_status %></a></h3>

<%= description %>

<% if !@flags.empty? -%>
<h3> Flags </h3>

This plugin provides the following flags:

<dl>
<% @flags.each do |flag, description| -%>
<%# Prefix flag with plugin name. %>
  <dt> <%= flag.gsub(/^--/, "--#{name}-") %> </dt>
  <dd> <%= description %> </dd>
<% end -%>
</dl>

<% end -%>

<h3> Synopsis </h3>

This is what it might look like in your config file:

<pre><code><%= section %> {
  <%= name %> {
<% sorted_settings.each do |setting_name, config|
     next if config[:deprecated]
     if config[:validate].is_a?(Array) 
       annotation = "#{config[:validate].inspect}"
     else 
       annotation = "#{config[:validate]}"
     end

     if setting_name.is_a?(Regexp)
       setting_name = "/" + setting_name.to_s.gsub(/^\(\?-mix:/, "").gsub(/\)$/, "") + "/"
     end
     if config[:required]
       annotation += " (required)"
     else
       annotation += " (optional)"
     end
     annotation += ", default: #{config[:default].inspect}" if config.include?(:default)
-%>
    <a href="#setting_<%= setting_name %>"><%= setting_name %></a> => ... # <%= annotation %>
<% end -%>
  }
}
</code></pre>

<h3> Details </h3>

<% sorted_settings.each do |setting_name, config| -%>
<%
     if setting_name.is_a?(Regexp)
       setting_name = "/" + setting_name.to_s.gsub(/^\(\?-mix:/, "").gsub(/\)$/, "") + "/"
       is_regexp = true
     else
       is_regexp = false
     end
-%>
<h4> 
  <a name="setting_<%= setting_name %>">
    <%= setting_name %><%= " (required setting)" if config[:required] %>
    <%= " <strong>DEPRECATED</strong>" if config[:deprecated] %>
</a>
</h4>

<ul>
<% if config[:deprecated] -%>
  <li> DEPRECATED WARNING: This config item is deprecated. It may be removed in a further version. </li>
<% end -%>
<% if is_regexp -%>
  <li> The configuration attribute name here is anything that matches the above regular expression. </li>
<% end -%>
<% if config[:validate].is_a?(Symbol) -%>
  <li> Value type is <%= config[:validate] %> </li>
<% elsif config[:validate].nil? -%>
  <li> Value type is string </li>
<% elsif config[:validate].is_a?(Array) -%>
  <li> Value can be any of: <%= config[:validate].map(&:inspect).join(", ") %> </li>
<% end -%>
<% if config.include?(:default) -%>
  <li> Default value is <%= config[:default].inspect %> </li>
<% else -%>
  <li> There is no default value for this setting. </li>
<% end -%>
</ul>

<%= config[:description] %>

<% end -%>

<hr>

This is documentation from <a href="https://github.com/logstash/logstash/blob/v<%= LOGSTASH_VERSION %>/<%= file %>"><%= file %></a>
{'fraction_non_alphanumeric': 0.2324147933284989, 'fraction_numerical': 0.00435097897026831, 'mean_word_length': 3.2800620636152056, 'pattern_counts': {'":': 0, '<': 189, '<?xml version=': 0, '>': 191, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5414754', 'n_tokens_mistral': 2109, 'n_tokens_neox': 1968, 'n_words': 484}