<commit_before>splunk

This is the splunk module.  It requires Puppet 2.6.2 or later.

Disabled inputs for  sourcetype "lsof" "ps" as they are chatty and create a lot of events

## Pre-Commit Hook
To use the pre-commit hook supplied (taken from another github repo, url to be supplied, link the hook to .git/hooks with this command
ln -s pre-commit.puppet-lint .git/hooks/pre-commit

## Example Usage

### Splunk Universal Forwarder

```Puppet
class { 'splunk':
  port         => '50514',
  target_group => { 'name' => '172.16.31.10' },
}
```


### splunk::ulimit<commit_msg>Updated README with example usage<commit_after>splunk

This is the splunk module.  It requires Puppet 2.6.2 or later.

Disabled inputs for  sourcetype "lsof" "ps" as they are chatty and create a lot of events

## Pre-Commit Hook
To use the pre-commit hook supplied (taken from another github repo, url to be supplied, link the hook to .git/hooks with this command
ln -s pre-commit.puppet-lint .git/hooks/pre-commit

## Example Usage

### Splunk Universal Forwarder

> The Below example configures a Universal Forwarder to send data to
an index server at IP 172.16.31.10 and port 50514, but does not specify any inputs.

```Puppet
class { 'splunk':
  port         => '50514',
  target_group => { 'name' => '172.16.31.10' },
}
```

### Splunk Light Weight Forwarder

> This example configures a Light Weight Forwarder to forward data to index
server splunkindex.example.edu at port 50514, and sets the default index to
"ns-os". In addition, we define the Splunk Unix TA as an app with its default
inputs

```Puppet
class { 'splunk':
  index        => 'ns-os',
  type         => 'lwf',
  port         => '50514',
  target_group => { 'name' => 'splunkindex.example.edu' },
}
splunk::ta::files { 'Splunk_TA_nix': }
```
### splunk::ulimit
{'fraction_non_alphanumeric': 0.11234089651355839, 'fraction_numerical': 0.032097399003873824, 'mean_word_length': 3.600508905852417, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 16, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 3, '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': '3154191', 'n_tokens_mistral': 641, 'n_tokens_neox': 584, 'n_words': 228}