<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_attributes.each do |name, config|
     next if config[:deprecated]
     if config[:validate].is_a?(Array) 
       annotation = "#{config[:validate].inspect}"
     else 
       annotation = "#{config[:validate]}"
     end

     if name.is_a?(Regexp)<commit_msg>- deprecate flags<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? -%>
<!-- Flags are deprecated 
<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>

... flags are deprecated -->

<% end -%>

<h3> Synopsis </h3>

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

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

     if name.is_a?(Regexp)
{'fraction_non_alphanumeric': 0.23068493150684932, 'fraction_numerical': 0.008767123287671232, 'mean_word_length': 3.2465116279069766, 'pattern_counts': {'":': 0, '<': 70, '<?xml version=': 0, '>': 68, 'https://': 0, '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': '7357129', 'n_tokens_mistral': 713, 'n_tokens_neox': 649, 'n_words': 175}