<commit_before>filter f_<%= @name -%> {facility(local3, local4, local5);};
destination d_<%= @name -%> {udp("<%= @remote_server -%>" port(514));};
log {source(s_src); filter(f_<%= @name -%>); destination(d_<%= @name -%>);};
<% if @logstash_remote_server and @logstash_remote_port -%>
destination d_<%= @name -%>_logstash {udp("<%= @logstash_remote_server -%>" port(<%= @logstash_remote_port -%>));};
log {source(s_src); filter(f_<%= @name -%>); destination(d_<%= @name -%>_logstash);};
<% end %>
<commit_msg>Support for multiple remote syslog servers.<commit_after>filter f_<%= @name -%> {facility(local3, local4, local5);};

<% if @remote_server.is_a?(Array) -%>
<% @remote_server.each_with_index do |rs, n| -%>
destination d_<%= @name -%><%= n -%> {udp("<%= rs -%>" port(514));};
log {source(s_src); filter(f_<%= @name -%>); destination(d_<%= @name -%><%= n -%>);};
<% end -%>
<% else -%>
destination d_<%= @name -%> {udp("<%= @remote_server -%>" port(514));};
log {source(s_src); filter(f_<%= @name -%>); destination(d_<%= @name -%>);};
<% end -%>

<% if @logstash_remote_server and @logstash_remote_port -%>
destination d_<%= @name -%>_logstash {udp("<%= @logstash_remote_server -%>" port(<%= @logstash_remote_port -%>));};
log {source(s_src); filter(f_<%= @name -%>); destination(d_<%= @name -%>_logstash);};
<% end -%>

{'fraction_non_alphanumeric': 0.2792452830188679, 'fraction_numerical': 0.011320754716981131, 'mean_word_length': 6.206521739130435, 'pattern_counts': {'":': 0, '<': 38, '<?xml version=': 0, '>': 38, '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': '331707', 'n_tokens_mistral': 594, 'n_tokens_neox': 550, 'n_words': 104}