<commit_before># Splunk Integration Pack

Basic integration with Splunk Enterprise, Splunk Cloud, or Splunk Light: http://www.splunk.com/en_us/products.html

## Configuration

Copy the example configuration in [splunk.yaml.example](./splunk.yaml.example)
to `/opt/stackstorm/configs/splunk.yaml` and edit as required.

It should contain:

* ``host`` - Splunk server
* ``port`` - Splunk API port (default 8089)
* ``username`` - Splunk username
* ``password`` - <PASSWORD> password

You can also use dynamic values from the datastore. See the
[docs](https://docs.stackstorm.com/reference/pack_configs.html) for more info.

## Actions

### search

Runs a synchronous search to get Splunk data. E.g., `st2 run splunk.search query='search * | head 10`. Refer to [Splunk documentation](http://docs.splunk.com/Documentation/Splunk/5.0/Search/Aboutthesearchlanguage) for search query syntax.

### Sensors
TBD

---
host: localhost
port: 8089
username: admin
password: <PASSWORD>
scheme: https
version: '5.0'<commit_msg>Fix readme.<commit_after># Splunk Integration Pack

Basic integration with Splunk Enterprise, Splunk Cloud, or Splunk Light: http://www.splunk.com/en_us/products.html

## Configuration

Copy the example configuration in [splunk.yaml.example](./splunk.yaml.example)
to `/opt/stackstorm/configs/splunk.yaml` and edit as required.

It should contain:

* ``host`` - Splunk server
* ``port`` - Splunk API port (default 8089)
* ``username`` - Splunk username
* ``password`` - <PASSWORD> password

You can also use dynamic values from the datastore. See the
[docs](https://docs.stackstorm.com/reference/pack_configs.html) for more info.

## Actions

### search

Runs a synchronous search to get Splunk data. E.g., `st2 run splunk.search query='search * | head 10`. Refer to [Splunk documentation](http://docs.splunk.com/Documentation/Splunk/5.0/Search/Aboutthesearchlanguage) for search query syntax.

## Sensors

TBD
{'fraction_non_alphanumeric': 0.12604166666666666, 'fraction_numerical': 0.0125, 'mean_word_length': 4.65, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '2094249', 'n_tokens_mistral': 631, 'n_tokens_neox': 592, 'n_words': 188}