<commit_before><% if scope.lookupvar('rsyslog::server::enable_udp') -%>
# Load UDP module
$ModLoad imudp
<% end -%>

<% if scope.lookupvar('rsyslog::server::enable_tcp') -%>
# Load TCP module
$ModLoad imtcp
<% end -%>

<% if scope.lookupvar('rsyslog::server::high_precision_timestamps') == false -%>
#
# Use traditional timestamp format.
# To enable high precision timestamps, comment out the following line.
#
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
<% end -%>

<% if scope.lookupvar('rsyslog::server::ssl') -%>
# Server side SSL.
$DefaultNetstreamDriver gtls

# Cert files.
$DefaultNetstreamDriverCAFile <%= scope.lookupvar('rsyslog::server::ssl_ca') %><commit_msg>Need to specificly define high precision time format incase of using both client and server config on same rsyslog instance.<commit_after><% if scope.lookupvar('rsyslog::server::enable_udp') -%>
# Load UDP module
$ModLoad imudp
<% end -%>

<% if scope.lookupvar('rsyslog::server::enable_tcp') -%>
# Load TCP module
$ModLoad imtcp
<% end -%>

#
<% if scope.lookupvar('rsyslog::server::high_precision_timestamps') == false -%>
# Use traditional timestamp format.
#
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
<% else -%>
# Use high precision timestamp format.
#
$ActionFileDefaultTemplate RSYSLOG_FileFormat
<% end -%>

<% if scope.lookupvar('rsyslog::server::ssl') -%>
# Server side SSL.
$DefaultNetstreamDriver gtls

# Cert files.
$DefaultNetstreamDriverCAFile <%= scope.lookupvar('rsyslog::server::ssl_ca') %>
{'fraction_non_alphanumeric': 0.1479761114797611, 'fraction_numerical': 0.0, 'mean_word_length': 6.35609756097561, 'pattern_counts': {'":': 0, '<': 20, '<?xml version=': 0, '>': 20, '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': '1071914', 'n_tokens_mistral': 512, 'n_tokens_neox': 487, 'n_words': 113}