<commit_before># Configure the rails portion of our syslog-ng setup! 
# This section can be left as is. 
log {
  source(s_all); 
  filter(f_rails_apps); 
  destination(log_server); 
  flags(final);
}; 

log {
  source(s_all);
  filter(f_passenger);
  destination(log_server);
  flags(final);
};

# You should set your IP address / port of the remote logging server. 
destination log_server { 
  udp("<%= configuration[:syslog_ng][:log_server_ip] %>" port(<%= configuration[:syslog_ng][:log_server_port]%>)); 
}; 
<commit_msg>Add config option for protocol for the clients.<commit_after># Configure the rails portion of our syslog-ng setup! 
# This section can be left as is. 
log {
  source(s_all); 
  filter(f_rails_apps); 
  destination(log_server); 
  flags(final);
}; 

log {
  source(s_all);
  filter(f_passenger);
  destination(log_server);
  flags(final);
};

# You should set your IP address / port of the remote logging server. 
destination log_server { 
  <%= configuration[:syslog_ng][:log_server_protocol] || "udp" %>("<%= configuration[:syslog_ng][:log_server_ip] %>" port(<%= configuration[:syslog_ng][:log_server_port]%>)); 
}; 

{'fraction_non_alphanumeric': 0.14160839160839161, 'fraction_numerical': 0.0, 'mean_word_length': 5.058201058201059, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '3736218', 'n_tokens_mistral': 408, 'n_tokens_neox': 384, 'n_words': 96}