<commit_before>== puppet syslog-ng

{<img src="https://travis-ci.org/purplehazech/puppet-syslogng.png?branch=master" alt="Build Status" />}[https://travis-ci.org/purplehazech/puppet-syslogng]

This repository will eventually contain a complete syslog-ng setup.

The idea is to use the rather complete scl configuration in the stepping-stone
syslog-ng[https://github.com/syslog-ng] repo as a starting point and adding
templates as i go.

For the scope of this module I am defining completeness as follows:

* manage installation of syslog-ng package
* built in support for a lot of logs
* manage client/server setup with storeconfigs
* good documentation
 <commit_msg>some example code in readme<commit_after>== puppet syslog-ng

{<img src="https://travis-ci.org/purplehazech/puppet-syslogng.png?branch=master" alt="Build Status" />}[https://travis-ci.org/purplehazech/puppet-syslogng]

This repository will eventually contain a complete syslog-ng setup.

The idea is to use the rather complete scl configuration in the stepping-stone
syslog-ng[https://github.com/syslog-ng] repo as a starting point and adding
templates as i go.

For the scope of this module I am defining completeness as follows:

* manage installation of syslog-ng package, done
* built in support for a lot of logs, done
* manage client/server setup with storeconfigs
* good documentation

=== Usage

For a simple solution just include the module. This mostly just install a bare
syslog-ng configuration.

  {
  "classes": {
    "syslog-ng"
  }

Let's say you need to monitor some services. You can use the create_resources api
to specify the services you need.

  {
  "classes": {
    "syslog-ng": {
      "services": {
        "syslog-ng": "",
	"radius": ""
      }
    }
  }

{'fraction_non_alphanumeric': 0.09439359267734554, 'fraction_numerical': 0.0, 'mean_word_length': 4.040345821325649, 'pattern_counts': {'":': 6, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 6, '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': '4278140', 'n_tokens_mistral': 532, 'n_tokens_neox': 527, 'n_words': 198}