<commit_before># Generated by Chef for <%= node['fqdn'] %>
# Local modifications will be overwritten.

template(name="<%= 'template' + @uniq_name %>"
         type="string"
         string="<%%pri%>%protocol-version% %timestamp:::date-rfc3339% %HOSTNAME% %app-name% %procid% %msgid% [<%= @loggly_token %>@41058 <%= @loggly_tags %>] %msg%\n"
)

<% if @rsyslog_ruleset %>
ruleset(name="<%= @rsyslog_ruleset %>"
        queue.filename="<%= 'mainqueue' + @uniq_name %>"
	queue.size="200000"
	queue.type="LinkedList"
){
<% end %>
<% if @rsyslog_tls_enable %>
<% unless @rsyslog_bundled_tls_enable %>
global(defaultNetstreamDriverCAFile="<%= @loggly_tls_path %>/<%= @loggly_tls_name %>")
<% end %>
<%= @rsyslog_selector %> action(name="<%= 'action' + @uniq_name %>"
                                type="omfwd"
				Protocol="tcp"
				Target="<%= @host %>"
				Port="<%= @port %>"
				StreamDriverMode="1"
				StreamDriver="gtls"
				StreamDriverAuthMode="x509/name"
				StreamDriverPermittedPeers="*.loggly.com"
				Template="<%= 'template' + @uniq_name %>"
				action.resumeRetryCount="-1"
			        queue.filename="<%= 'actionqueue' + @uniq_name %>"
                         	queue.size="200000"
                        	queue.type="LinkedList"
				queue.maxdiskspace="100M")
<% else %>
<%= @rsyslog_selector %> action(name="<%= 'action' + @uniq_name %>"
                                type="omfwd"
				Protocol="tcp"
				Target="<%= @host %>"
				Port="<%= @port %>"
				Template="<%= 'template' + @uniq_name %>"
				action.resumeRetryCount="-1"
			        queue.filename="<%= 'actionqueue' + @uniq_name %>"
                         	queue.size="200000"
                        	queue.type="LinkedList"
				queue.maxdiskspace="100M")
<% end %>
<% if @rsyslog_ruleset %>
}
<% end %>

input(type="imfile"
      File="<%= @log_filename %>"
<% if @rsyslog_tag %>
      Tag="<%= @rsyslog_tag +':' %>"
<% end %>
      StateFile="<%= 'imfile-state:' + @uniq_name %>"
<% if @rsyslog_ruleset %>
      Ruleset="<%= @rsyslog_ruleset %>"
<% end %>
)
<commit_msg>Modify: set save on shutdown queue parameter to on.<commit_after># Generated by Chef for <%= node['fqdn'] %>
# Local modifications will be overwritten.

template(name="<%= 'template' + @uniq_name %>"
         type="string"
         string="<%%pri%>%protocol-version% %timestamp:::date-rfc3339% %HOSTNAME% %app-name% %procid% %msgid% [<%= @loggly_token %>@41058 <%= @loggly_tags %>] %msg%\n"
)

<% if @rsyslog_ruleset %>
ruleset(name="<%= @rsyslog_ruleset %>"
        queue.filename="<%= 'mainqueue' + @uniq_name %>"
	queue.size="200000"
	queue.type="LinkedList"
	queue.saveonshutdown="on"
){
<% end %>
<% if @rsyslog_tls_enable %>
<% unless @rsyslog_bundled_tls_enable %>
global(defaultNetstreamDriverCAFile="<%= @loggly_tls_path %>/<%= @loggly_tls_name %>")
<% end %>
<%= @rsyslog_selector %> action(name="<%= 'action' + @uniq_name %>"
                                type="omfwd"
				Protocol="tcp"
				Target="<%= @host %>"
				Port="<%= @port %>"
				StreamDriverMode="1"
				StreamDriver="gtls"
				StreamDriverAuthMode="x509/name"
				StreamDriverPermittedPeers="*.loggly.com"
				Template="<%= 'template' + @uniq_name %>"
				action.resumeRetryCount="-1"
			        queue.filename="<%= 'actionqueue' + @uniq_name %>"
                         	queue.size="200000"
                        	queue.type="LinkedList"
				queue.maxdiskspace="100M"
			        queue.saveonshutdown="on")
<% else %>
<%= @rsyslog_selector %> action(name="<%= 'action' + @uniq_name %>"
                                type="omfwd"
				Protocol="tcp"
				Target="<%= @host %>"
				Port="<%= @port %>"
				Template="<%= 'template' + @uniq_name %>"
				action.resumeRetryCount="-1"
			        queue.filename="<%= 'actionqueue' + @uniq_name %>"
                         	queue.size="200000"
                        	queue.type="LinkedList"
				queue.maxdiskspace="100M"
			        queue.saveonshutdown="on")
<% end %>
<% if @rsyslog_ruleset %>
}
<% end %>

input(type="imfile"
      File="<%= @log_filename %>"
<% if @rsyslog_tag %>
      Tag="<%= @rsyslog_tag +':' %>"
<% end %>
      StateFile="<%= 'imfile-state:' + @uniq_name %>"
<% if @rsyslog_ruleset %>
      Ruleset="<%= @rsyslog_ruleset %>"
<% end %>
)

{'fraction_non_alphanumeric': 0.20344583431673355, 'fraction_numerical': 0.018409251829124382, 'mean_word_length': 3.0094607379375593, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 0, '>': 79, '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': '1073120', 'n_tokens_mistral': 1765, 'n_tokens_neox': 1486, 'n_words': 227}