summaryrefslogtreecommitdiffstats
path: root/collections-debian-merged/ansible_collections/splunk
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-14 20:03:01 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-14 20:03:01 +0000
commita453ac31f3428614cceb99027f8efbdb9258a40b (patch)
treef61f87408f32a8511cbd91799f9cececb53e0374 /collections-debian-merged/ansible_collections/splunk
parentInitial commit. (diff)
downloadansible-upstream.tar.xz
ansible-upstream.zip
Adding upstream version 2.10.7+merged+base+2.10.8+dfsg.upstream/2.10.7+merged+base+2.10.8+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--collections-debian-merged/ansible_collections/splunk/es/.gitignore131
-rw-r--r--collections-debian-merged/ansible_collections/splunk/es/FILES.json432
-rw-r--r--collections-debian-merged/ansible_collections/splunk/es/LICENSE674
-rw-r--r--collections-debian-merged/ansible_collections/splunk/es/MANIFEST.json33
-rw-r--r--collections-debian-merged/ansible_collections/splunk/es/README.md284
-rw-r--r--collections-debian-merged/ansible_collections/splunk/es/bindep.txt6
-rw-r--r--collections-debian-merged/ansible_collections/splunk/es/changelogs/CHANGELOG.rst33
-rw-r--r--collections-debian-merged/ansible_collections/splunk/es/changelogs/changelog.yaml30
-rw-r--r--collections-debian-merged/ansible_collections/splunk/es/changelogs/config.yaml30
-rw-r--r--collections-debian-merged/ansible_collections/splunk/es/docs/splunk.es.adaptive_response_notable_event_module.rst375
-rw-r--r--collections-debian-merged/ansible_collections/splunk/es/docs/splunk.es.correlation_search_info_module.rst81
-rw-r--r--collections-debian-merged/ansible_collections/splunk/es/docs/splunk.es.correlation_search_module.rst387
-rw-r--r--collections-debian-merged/ansible_collections/splunk/es/docs/splunk.es.data_input_monitor_module.rst359
-rw-r--r--collections-debian-merged/ansible_collections/splunk/es/docs/splunk.es.data_input_network_module.rst298
-rw-r--r--collections-debian-merged/ansible_collections/splunk/es/docs/splunk.es.splunk_httpapi.rst43
-rw-r--r--collections-debian-merged/ansible_collections/splunk/es/meta/runtime.yml2
-rw-r--r--collections-debian-merged/ansible_collections/splunk/es/plugins/httpapi/splunk.py73
-rw-r--r--collections-debian-merged/ansible_collections/splunk/es/plugins/module_utils/splunk.py153
-rw-r--r--collections-debian-merged/ansible_collections/splunk/es/plugins/modules/adaptive_response_notable_event.py417
-rw-r--r--collections-debian-merged/ansible_collections/splunk/es/plugins/modules/correlation_search.py351
-rw-r--r--collections-debian-merged/ansible_collections/splunk/es/plugins/modules/correlation_search_info.py78
-rw-r--r--collections-debian-merged/ansible_collections/splunk/es/plugins/modules/data_input_monitor.py258
-rw-r--r--collections-debian-merged/ansible_collections/splunk/es/plugins/modules/data_input_network.py272
-rw-r--r--collections-debian-merged/ansible_collections/splunk/es/plugins/modules/splunk_adaptive_response_notable_event.py417
-rw-r--r--collections-debian-merged/ansible_collections/splunk/es/plugins/modules/splunk_correlation_search.py351
-rw-r--r--collections-debian-merged/ansible_collections/splunk/es/plugins/modules/splunk_correlation_search_info.py78
-rw-r--r--collections-debian-merged/ansible_collections/splunk/es/plugins/modules/splunk_data_input_monitor.py258
-rw-r--r--collections-debian-merged/ansible_collections/splunk/es/plugins/modules/splunk_data_input_network.py272
-rw-r--r--collections-debian-merged/ansible_collections/splunk/es/requirements.txt0
-rw-r--r--collections-debian-merged/ansible_collections/splunk/es/test-requirements.txt0
-rw-r--r--collections-debian-merged/ansible_collections/splunk/es/tests/.keep0
-rw-r--r--collections-debian-merged/ansible_collections/splunk/es/tests/integration/target-prefixes.network1
-rw-r--r--collections-debian-merged/ansible_collections/splunk/es/tests/integration/targets/adaptive_response_notable_event/aliases1
-rw-r--r--collections-debian-merged/ansible_collections/splunk/es/tests/integration/targets/adaptive_response_notable_event/tasks/main.yml40
-rw-r--r--collections-debian-merged/ansible_collections/splunk/es/tests/integration/targets/correlation_search_info/aliases1
-rw-r--r--collections-debian-merged/ansible_collections/splunk/es/tests/integration/targets/correlation_search_info/tasks/main.yml79
-rw-r--r--collections-debian-merged/ansible_collections/splunk/es/tests/integration/targets/data_input_monitor/aliases1
-rw-r--r--collections-debian-merged/ansible_collections/splunk/es/tests/integration/targets/data_input_monitor/tasks/main.yml52
-rw-r--r--collections-debian-merged/ansible_collections/splunk/es/tests/integration/targets/data_input_network/aliases1
-rw-r--r--collections-debian-merged/ansible_collections/splunk/es/tests/integration/targets/data_input_network/tasks/main.yml52
-rw-r--r--collections-debian-merged/ansible_collections/splunk/es/tests/integration/targets/splunk_adaptive_response_notable_event/aliases1
-rw-r--r--collections-debian-merged/ansible_collections/splunk/es/tests/integration/targets/splunk_adaptive_response_notable_event/tasks/main.yml0
42 files changed, 6405 insertions, 0 deletions
diff --git a/collections-debian-merged/ansible_collections/splunk/es/.gitignore b/collections-debian-merged/ansible_collections/splunk/es/.gitignore
new file mode 100644
index 00000000..53e44f6d
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/splunk/es/.gitignore
@@ -0,0 +1,131 @@
+# Byte-compiled / optimized / DLL files
+__pycache__/
+*.py[cod]
+*$py.class
+
+# C extensions
+*.so
+
+# Distribution / packaging
+.Python
+build/
+develop-eggs/
+dist/
+downloads/
+eggs/
+.eggs/
+lib/
+lib64/
+parts/
+sdist/
+var/
+wheels/
+pip-wheel-metadata/
+share/python-wheels/
+*.egg-info/
+.installed.cfg
+*.egg
+MANIFEST
+
+# PyInstaller
+# Usually these files are written by a python script from a template
+# before PyInstaller builds the exe, so as to inject date/other infos into it.
+*.manifest
+*.spec
+
+# Installer logs
+pip-log.txt
+pip-delete-this-directory.txt
+
+# Unit test / coverage reports
+htmlcov/
+.tox/
+.nox/
+.coverage
+.coverage.*
+.cache
+nosetests.xml
+coverage.xml
+*.cover
+*.py,cover
+.hypothesis/
+.pytest_cache/
+
+# Translations
+*.mo
+*.pot
+
+# Django stuff:
+*.log
+local_settings.py
+db.sqlite3
+db.sqlite3-journal
+
+# Flask stuff:
+instance/
+.webassets-cache
+
+# Scrapy stuff:
+.scrapy
+
+# Sphinx documentation
+docs/_build/
+
+# PyBuilder
+target/
+
+# Jupyter Notebook
+.ipynb_checkpoints
+
+# IPython
+profile_default/
+ipython_config.py
+
+# pyenv
+.python-version
+
+# pipenv
+# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
+# However, in case of collaboration, if having platform-specific dependencies or dependencies
+# having no cross-platform support, pipenv may install dependencies that don't work, or not
+# install all needed dependencies.
+#Pipfile.lock
+
+# PEP 582; used by e.g. github.com/David-OConnor/pyflow
+__pypackages__/
+
+# Celery stuff
+celerybeat-schedule
+celerybeat.pid
+
+# SageMath parsed files
+*.sage.py
+
+# Environments
+.env
+.venv
+env/
+venv/
+ENV/
+env.bak/
+venv.bak/
+
+# Spyder project settings
+.spyderproject
+.spyproject
+
+# Rope project settings
+.ropeproject
+
+# mkdocs documentation
+/site
+
+# mypy
+.mypy_cache/
+.dmypy.json
+dmypy.json
+
+# Pyre type checker
+.pyre/
+
+tests/output/
diff --git a/collections-debian-merged/ansible_collections/splunk/es/FILES.json b/collections-debian-merged/ansible_collections/splunk/es/FILES.json
new file mode 100644
index 00000000..4649b032
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/splunk/es/FILES.json
@@ -0,0 +1,432 @@
+{
+ "files": [
+ {
+ "name": ".",
+ "ftype": "dir",
+ "chksum_type": null,
+ "chksum_sha256": null,
+ "format": 1
+ },
+ {
+ "name": "plugins",
+ "ftype": "dir",
+ "chksum_type": null,
+ "chksum_sha256": null,
+ "format": 1
+ },
+ {
+ "name": "plugins/modules",
+ "ftype": "dir",
+ "chksum_type": null,
+ "chksum_sha256": null,
+ "format": 1
+ },
+ {
+ "name": "plugins/modules/splunk_correlation_search.py",
+ "ftype": "file",
+ "chksum_type": "sha256",
+ "chksum_sha256": "9f098b8af454bfc752ae06d48c7aeb6baad63f6fbbedc146d31f1002c6201b6c",
+ "format": 1
+ },
+ {
+ "name": "plugins/modules/splunk_correlation_search_info.py",
+ "ftype": "file",
+ "chksum_type": "sha256",
+ "chksum_sha256": "f6235f89eb878200896c2e8ed684c0832ebdc57b85aa4080ec5cdd02c2f71567",
+ "format": 1
+ },
+ {
+ "name": "plugins/modules/adaptive_response_notable_event.py",
+ "ftype": "file",
+ "chksum_type": "sha256",
+ "chksum_sha256": "de08b8df89d55ee267c6ad3d16f8a1230598f719d75efd8fbc584e586e0ad85d",
+ "format": 1
+ },
+ {
+ "name": "plugins/modules/correlation_search.py",
+ "ftype": "file",
+ "chksum_type": "sha256",
+ "chksum_sha256": "9f098b8af454bfc752ae06d48c7aeb6baad63f6fbbedc146d31f1002c6201b6c",
+ "format": 1
+ },
+ {
+ "name": "plugins/modules/data_input_network.py",
+ "ftype": "file",
+ "chksum_type": "sha256",
+ "chksum_sha256": "0213a494cec2b290d057d225e5a5b0d38641bd0342e7c86b6bc82be49025c334",
+ "format": 1
+ },
+ {
+ "name": "plugins/modules/splunk_data_input_monitor.py",
+ "ftype": "file",
+ "chksum_type": "sha256",
+ "chksum_sha256": "6226c22eafa18bac1e154b5f75c23c25ba60f63979cbb60957f53fa301d4d1d0",
+ "format": 1
+ },
+ {
+ "name": "plugins/modules/correlation_search_info.py",
+ "ftype": "file",
+ "chksum_type": "sha256",
+ "chksum_sha256": "f6235f89eb878200896c2e8ed684c0832ebdc57b85aa4080ec5cdd02c2f71567",
+ "format": 1
+ },
+ {
+ "name": "plugins/modules/splunk_adaptive_response_notable_event.py",
+ "ftype": "file",
+ "chksum_type": "sha256",
+ "chksum_sha256": "de08b8df89d55ee267c6ad3d16f8a1230598f719d75efd8fbc584e586e0ad85d",
+ "format": 1
+ },
+ {
+ "name": "plugins/modules/data_input_monitor.py",
+ "ftype": "file",
+ "chksum_type": "sha256",
+ "chksum_sha256": "6226c22eafa18bac1e154b5f75c23c25ba60f63979cbb60957f53fa301d4d1d0",
+ "format": 1
+ },
+ {
+ "name": "plugins/modules/splunk_data_input_network.py",
+ "ftype": "file",
+ "chksum_type": "sha256",
+ "chksum_sha256": "0213a494cec2b290d057d225e5a5b0d38641bd0342e7c86b6bc82be49025c334",
+ "format": 1
+ },
+ {
+ "name": "plugins/module_utils",
+ "ftype": "dir",
+ "chksum_type": null,
+ "chksum_sha256": null,
+ "format": 1
+ },
+ {
+ "name": "plugins/module_utils/splunk.py",
+ "ftype": "file",
+ "chksum_type": "sha256",
+ "chksum_sha256": "66a698d0d94005d42782085c0fc4ea859a02a68c5a90ee3c4ededf67724a5374",
+ "format": 1
+ },
+ {
+ "name": "plugins/httpapi",
+ "ftype": "dir",
+ "chksum_type": null,
+ "chksum_sha256": null,
+ "format": 1
+ },
+ {
+ "name": "plugins/httpapi/splunk.py",
+ "ftype": "file",
+ "chksum_type": "sha256",
+ "chksum_sha256": "b6ca224269aed3f6b24035c7d0f6f114d594f15b1ff6f18295d439d071daa69d",
+ "format": 1
+ },
+ {
+ "name": "LICENSE",
+ "ftype": "file",
+ "chksum_type": "sha256",
+ "chksum_sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
+ "format": 1
+ },
+ {
+ "name": "changelogs",
+ "ftype": "dir",
+ "chksum_type": null,
+ "chksum_sha256": null,
+ "format": 1
+ },
+ {
+ "name": "changelogs/changelog.yaml",
+ "ftype": "file",
+ "chksum_type": "sha256",
+ "chksum_sha256": "05a2525657d2f2dc1f0fc77a17185a9f489622c89c45096e99e81d2c62b275f3",
+ "format": 1
+ },
+ {
+ "name": "changelogs/config.yaml",
+ "ftype": "file",
+ "chksum_type": "sha256",
+ "chksum_sha256": "a6c37d81485636d11d3658c05ae604ddcee8a2520cf831763b765b511ae5e522",
+ "format": 1
+ },
+ {
+ "name": "changelogs/CHANGELOG.rst",
+ "ftype": "file",
+ "chksum_type": "sha256",
+ "chksum_sha256": "8c199ec5c6370ef1269e4f6badfbd44da61c06df5ece481b69a1d387e445ee74",
+ "format": 1
+ },
+ {
+ "name": "docs",
+ "ftype": "dir",
+ "chksum_type": null,
+ "chksum_sha256": null,
+ "format": 1
+ },
+ {
+ "name": "docs/splunk.es.correlation_search_module.rst",
+ "ftype": "file",
+ "chksum_type": "sha256",
+ "chksum_sha256": "4446240dddd44f8e0580d8b93d82bcd6b4a3d7920cee867dae850e5f8d05911e",
+ "format": 1
+ },
+ {
+ "name": "docs/splunk.es.splunk_httpapi.rst",
+ "ftype": "file",
+ "chksum_type": "sha256",
+ "chksum_sha256": "8b3f4f3e91e2ebc6b1f5a76c1da6613d7ea4290e9f5d286e3dc871b30af0cb6b",
+ "format": 1
+ },
+ {
+ "name": "docs/splunk.es.correlation_search_info_module.rst",
+ "ftype": "file",
+ "chksum_type": "sha256",
+ "chksum_sha256": "33cd6ee0902dc2ca03aaf6325891d27fd5720903c64fc372de23a1c867c0a923",
+ "format": 1
+ },
+ {
+ "name": "docs/splunk.es.data_input_monitor_module.rst",
+ "ftype": "file",
+ "chksum_type": "sha256",
+ "chksum_sha256": "75218797620dfe41ec1ca073778ed4591b6bbd5f264d4fb61b489249f0be1de2",
+ "format": 1
+ },
+ {
+ "name": "docs/splunk.es.data_input_network_module.rst",
+ "ftype": "file",
+ "chksum_type": "sha256",
+ "chksum_sha256": "569e44083b40563ef0d7ff04cf35875b6a46682743d5ee9d8698184971813e23",
+ "format": 1
+ },
+ {
+ "name": "docs/splunk.es.adaptive_response_notable_event_module.rst",
+ "ftype": "file",
+ "chksum_type": "sha256",
+ "chksum_sha256": "d4d09f5d640c4edefdb962fc1894f3dd2bd9d83215a10dbdbc76a44785977aea",
+ "format": 1
+ },
+ {
+ "name": "tests",
+ "ftype": "dir",
+ "chksum_type": null,
+ "chksum_sha256": null,
+ "format": 1
+ },
+ {
+ "name": "tests/integration",
+ "ftype": "dir",
+ "chksum_type": null,
+ "chksum_sha256": null,
+ "format": 1
+ },
+ {
+ "name": "tests/integration/targets",
+ "ftype": "dir",
+ "chksum_type": null,
+ "chksum_sha256": null,
+ "format": 1
+ },
+ {
+ "name": "tests/integration/targets/data_input_monitor",
+ "ftype": "dir",
+ "chksum_type": null,
+ "chksum_sha256": null,
+ "format": 1
+ },
+ {
+ "name": "tests/integration/targets/data_input_monitor/aliases",
+ "ftype": "file",
+ "chksum_type": "sha256",
+ "chksum_sha256": "6bb6404fafee8059a78fb870fbbdf81ebc604c86a60e2e8bc834083a422657f1",
+ "format": 1
+ },
+ {
+ "name": "tests/integration/targets/data_input_monitor/tasks",
+ "ftype": "dir",
+ "chksum_type": null,
+ "chksum_sha256": null,
+ "format": 1
+ },
+ {
+ "name": "tests/integration/targets/data_input_monitor/tasks/main.yml",
+ "ftype": "file",
+ "chksum_type": "sha256",
+ "chksum_sha256": "1a78b2758269dc89f0a3b41b141b7be7d0197fd07e6a903ef813547db1d0ec46",
+ "format": 1
+ },
+ {
+ "name": "tests/integration/targets/adaptive_response_notable_event",
+ "ftype": "dir",
+ "chksum_type": null,
+ "chksum_sha256": null,
+ "format": 1
+ },
+ {
+ "name": "tests/integration/targets/adaptive_response_notable_event/aliases",
+ "ftype": "file",
+ "chksum_type": "sha256",
+ "chksum_sha256": "6bb6404fafee8059a78fb870fbbdf81ebc604c86a60e2e8bc834083a422657f1",
+ "format": 1
+ },
+ {
+ "name": "tests/integration/targets/adaptive_response_notable_event/tasks",
+ "ftype": "dir",
+ "chksum_type": null,
+ "chksum_sha256": null,
+ "format": 1
+ },
+ {
+ "name": "tests/integration/targets/adaptive_response_notable_event/tasks/main.yml",
+ "ftype": "file",
+ "chksum_type": "sha256",
+ "chksum_sha256": "5d15c9db8d6c58ab84029cab72e0f35107c4ccdf2fcef81d40c5d701c1ff7771",
+ "format": 1
+ },
+ {
+ "name": "tests/integration/targets/splunk_adaptive_response_notable_event",
+ "ftype": "dir",
+ "chksum_type": null,
+ "chksum_sha256": null,
+ "format": 1
+ },
+ {
+ "name": "tests/integration/targets/splunk_adaptive_response_notable_event/aliases",
+ "ftype": "file",
+ "chksum_type": "sha256",
+ "chksum_sha256": "6bb6404fafee8059a78fb870fbbdf81ebc604c86a60e2e8bc834083a422657f1",
+ "format": 1
+ },
+ {
+ "name": "tests/integration/targets/splunk_adaptive_response_notable_event/tasks",
+ "ftype": "dir",
+ "chksum_type": null,
+ "chksum_sha256": null,
+ "format": 1
+ },
+ {
+ "name": "tests/integration/targets/splunk_adaptive_response_notable_event/tasks/main.yml",
+ "ftype": "file",
+ "chksum_type": "sha256",
+ "chksum_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
+ "format": 1
+ },
+ {
+ "name": "tests/integration/targets/data_input_network",
+ "ftype": "dir",
+ "chksum_type": null,
+ "chksum_sha256": null,
+ "format": 1
+ },
+ {
+ "name": "tests/integration/targets/data_input_network/aliases",
+ "ftype": "file",
+ "chksum_type": "sha256",
+ "chksum_sha256": "6bb6404fafee8059a78fb870fbbdf81ebc604c86a60e2e8bc834083a422657f1",
+ "format": 1
+ },
+ {
+ "name": "tests/integration/targets/data_input_network/tasks",
+ "ftype": "dir",
+ "chksum_type": null,
+ "chksum_sha256": null,
+ "format": 1
+ },
+ {
+ "name": "tests/integration/targets/data_input_network/tasks/main.yml",
+ "ftype": "file",
+ "chksum_type": "sha256",
+ "chksum_sha256": "c6042bd7ff646b64f9fd05ca70e80b65a8f393ad7fdd23b29b22ffb7c46f8058",
+ "format": 1
+ },
+ {
+ "name": "tests/integration/targets/correlation_search_info",
+ "ftype": "dir",
+ "chksum_type": null,
+ "chksum_sha256": null,
+ "format": 1
+ },
+ {
+ "name": "tests/integration/targets/correlation_search_info/aliases",
+ "ftype": "file",
+ "chksum_type": "sha256",
+ "chksum_sha256": "6bb6404fafee8059a78fb870fbbdf81ebc604c86a60e2e8bc834083a422657f1",
+ "format": 1
+ },
+ {
+ "name": "tests/integration/targets/correlation_search_info/tasks",
+ "ftype": "dir",
+ "chksum_type": null,
+ "chksum_sha256": null,
+ "format": 1
+ },
+ {
+ "name": "tests/integration/targets/correlation_search_info/tasks/main.yml",
+ "ftype": "file",
+ "chksum_type": "sha256",
+ "chksum_sha256": "bc07581a39cf9023d3b0186931ce214950705d01bb3f586e081150c77aa453d8",
+ "format": 1
+ },
+ {
+ "name": "tests/integration/target-prefixes.network",
+ "ftype": "file",
+ "chksum_type": "sha256",
+ "chksum_sha256": "d31a0d2ea7becadb883d33f8189e1cef71c07a907bef52c2437de1348005d004",
+ "format": 1
+ },
+ {
+ "name": "tests/.keep",
+ "ftype": "file",
+ "chksum_type": "sha256",
+ "chksum_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
+ "format": 1
+ },
+ {
+ "name": "meta",
+ "ftype": "dir",
+ "chksum_type": null,
+ "chksum_sha256": null,
+ "format": 1
+ },
+ {
+ "name": "meta/runtime.yml",
+ "ftype": "file",
+ "chksum_type": "sha256",
+ "chksum_sha256": "8c9581f26acacb690689389033c2f05c40ef9e5fe65a47680761cf45b2518615",
+ "format": 1
+ },
+ {
+ "name": "test-requirements.txt",
+ "ftype": "file",
+ "chksum_type": "sha256",
+ "chksum_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
+ "format": 1
+ },
+ {
+ "name": "bindep.txt",
+ "ftype": "file",
+ "chksum_type": "sha256",
+ "chksum_sha256": "80645079eb025b3a905b4775ac545d080a3d7d35d537c31e04f7197c94315ab5",
+ "format": 1
+ },
+ {
+ "name": "requirements.txt",
+ "ftype": "file",
+ "chksum_type": "sha256",
+ "chksum_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
+ "format": 1
+ },
+ {
+ "name": "README.md",
+ "ftype": "file",
+ "chksum_type": "sha256",
+ "chksum_sha256": "91b46b7fa15ad84fcfd36ccef1942a8c01ca6bee6fe8533e1e0be79e0843991d",
+ "format": 1
+ },
+ {
+ "name": ".gitignore",
+ "ftype": "file",
+ "chksum_type": "sha256",
+ "chksum_sha256": "0fabb75e1cd5126877f40c30627431348b568ccd5d2df55fcbcfff03fc9d378d",
+ "format": 1
+ }
+ ],
+ "format": 1
+} \ No newline at end of file
diff --git a/collections-debian-merged/ansible_collections/splunk/es/LICENSE b/collections-debian-merged/ansible_collections/splunk/es/LICENSE
new file mode 100644
index 00000000..f288702d
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/splunk/es/LICENSE
@@ -0,0 +1,674 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Use with the GNU Affero General Public License.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+ <program> Copyright (C) <year> <name of author>
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+<https://www.gnu.org/licenses/>.
+
+ The GNU General Public License does not permit incorporating your program
+into proprietary programs. If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License. But first, please read
+<https://www.gnu.org/licenses/why-not-lgpl.html>.
diff --git a/collections-debian-merged/ansible_collections/splunk/es/MANIFEST.json b/collections-debian-merged/ansible_collections/splunk/es/MANIFEST.json
new file mode 100644
index 00000000..354fbd06
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/splunk/es/MANIFEST.json
@@ -0,0 +1,33 @@
+{
+ "collection_info": {
+ "namespace": "splunk",
+ "name": "es",
+ "version": "1.0.2",
+ "authors": [
+ "Ansible Seurity Team (https://github.com/ansible-security)"
+ ],
+ "readme": "README.md",
+ "tags": [
+ "security",
+ "splunk"
+ ],
+ "description": "Ansible Security Collection for Splunk Enterprise Security SIEM",
+ "license": [
+ "GPL-3.0-or-later"
+ ],
+ "license_file": null,
+ "dependencies": {},
+ "repository": "https://github.com/ansible-collections/splunk.es",
+ "documentation": "https://github.com/ansible-collections/splunk.es",
+ "homepage": "https://github.com/ansible-collections/splunk.es",
+ "issues": "https://github.com/ansible-collections/splunk.es/issues"
+ },
+ "file_manifest_file": {
+ "name": "FILES.json",
+ "ftype": "file",
+ "chksum_type": "sha256",
+ "chksum_sha256": "6e2ef173441de9f8a98a2ce175c8f8869d2457ca097cb9fb40ab333322466431",
+ "format": 1
+ },
+ "format": 1
+} \ No newline at end of file
diff --git a/collections-debian-merged/ansible_collections/splunk/es/README.md b/collections-debian-merged/ansible_collections/splunk/es/README.md
new file mode 100644
index 00000000..09d5a0f9
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/splunk/es/README.md
@@ -0,0 +1,284 @@
+# Splunk Enterprise Security Ansible Collection
+
+[![CI](https://zuul-ci.org/gated.svg)](https://dashboard.zuul.ansible.com/t/ansible/project/github.com/ansible-collections/splunk.es) <!--[![Codecov](https://img.shields.io/codecov/c/github/ansible-collections/splunk.es)](https://codecov.io/gh/ansible-collections/splunk.es)-->
+
+This is the [Ansible
+Collection](https://docs.ansible.com/ansible/latest/user_guide/collections_using.html)
+provided by the [Ansible Security Automation
+Team](https://github.com/ansible-security) for automating actions in
+[Splunk Enterprise Security SIEM](https://www.splunk.com/en_us/software/enterprise-security.html)
+
+This Collection is meant for distribution through
+[Ansible Galaxy](https://galaxy.ansible.com/) as is available for all
+[Ansible](https://github.com/ansible/ansible) users to utilize, contribute to,
+and provide feedback about.
+
+<!--start requires_ansible-->
+## Ansible version compatibility
+
+This collection has been tested against following Ansible versions: **>=2.9,<2.11**.
+
+Plugins and modules within a collection may be tested with only specific Ansible versions.
+A collection may contain metadata that identifies these versions.
+PEP440 is the schema used to describe the versions of Ansible.
+<!--end requires_ansible-->
+
+## Collection Content
+<!--start collection content-->
+### Httpapi plugins
+Name | Description
+--- | ---
+[splunk.es.splunk](https://github.com/ansible-collections/splunk.es/blob/main/docs/splunk.es.splunk_httpapi.rst)|HttpApi Plugin for Splunk
+
+### Modules
+Name | Description
+--- | ---
+[splunk.es.adaptive_response_notable_event](https://github.com/ansible-collections/splunk.es/blob/main/docs/splunk.es.adaptive_response_notable_event_module.rst)|Manage Splunk Enterprise Security Notable Event Adaptive Responses
+[splunk.es.correlation_search](https://github.com/ansible-collections/splunk.es/blob/main/docs/splunk.es.correlation_search_module.rst)|Manage Splunk Enterprise Security Correlation Searches
+[splunk.es.correlation_search_info](https://github.com/ansible-collections/splunk.es/blob/main/docs/splunk.es.correlation_search_info_module.rst)|Manage Splunk Enterprise Security Correlation Searches
+[splunk.es.data_input_monitor](https://github.com/ansible-collections/splunk.es/blob/main/docs/splunk.es.data_input_monitor_module.rst)|Manage Splunk Data Inputs of type Monitor
+[splunk.es.data_input_network](https://github.com/ansible-collections/splunk.es/blob/main/docs/splunk.es.data_input_network_module.rst)|Manage Splunk Data Inputs of type TCP or UDP
+
+<!--end collection content-->
+
+
+### Supported connections
+
+Use splunk modules with the [`httpapi` connection
+plugin](https://docs.ansible.com/ansible/latest/plugins/connection/httpapi.html).
+Set certain attributes in the inventory as follows:
+
+Example `inventory.ini`:
+
+**NOTE:** The passwords should be stored in a secure location or an [Ansible
+Vault](https://docs.ansible.com/ansible/latest/user_guide/vault.html)
+
+**NOTE:** the default port for Splunk's REST API is 8089
+
+
+ [splunk]
+ splunk.example.com
+
+ [splunk:vars]
+ ansible_network_os=splunk.es.splunk
+ ansible_user=admin
+ ansible_httpapi_pass=my_super_secret_admin_password
+ ansible_httpapi_port=8089
+ ansible_httpapi_use_ssl=yes
+ ansible_httpapi_validate_certs=True
+ ansible_connection=httpapi
+
+
+## Installing this collection
+
+You can install the splunk collection with the Ansible Galaxy CLI:
+
+ ansible-galaxy collection install splunk.es
+
+You can also include it in a `requirements.yml` file and install it with `ansible-galaxy collection install -r requirements.yml`, using the format:
+
+```yaml
+---
+collections:
+ - name: splunk.es
+```
+
+
+## Using this collection
+
+**NOTE**: For Ansible 2.9, you may not see deprecation warnings when you run your playbooks with this collection. Use this documentation to track when a module is deprecated.
+
+An example for using this collection to manage a log source with [Splunk Enterprise Security SIEM](https://www.splunk.com/en_us/software/enterprise-security.html) is as follows.
+
+`inventory.ini` (Note the password should be managed by a [Vault](https://docs.ansible.com/ansible/latest/user_guide/vault.html) for a production environment.
+```
+[splunk]
+splunk.example.com
+
+[splunk:vars]
+ansible_network_os=splunk.es.splunk
+ansible_user=admin
+ansible_httpapi_pass=my_super_secret_admin_password
+ansible_httpapi_port=8089
+ansible_httpapi_use_ssl=yes
+ansible_httpapi_validate_certs=True
+ansible_connection=httpapi
+```
+
+### Using the modules with Fully Qualified Collection Name (FQCN)
+
+With [Ansible
+Collections](https://docs.ansible.com/ansible/latest/dev_guide/developing_collections.html)
+there are various ways to utilize them either by calling specific Content from
+the Collection, such as a module, by it's Fully Qualified Collection Name (FQCN)
+as we'll show in this example or by defining a Collection Search Path as the
+examples below will display.
+
+We recommend the FQCN method but the
+shorthand options listed below exist for convenience.
+
+`splunk_with_collections_fqcn_example.yml`
+```
+---
+- name: demo splunk
+ hosts: splunk
+ gather_facts: False
+ tasks:
+ - name: test splunk_data_input_monitor
+ splunk.es.data_input_monitor:
+ name: "/var/log/demo.log"
+ state: "present"
+ recursive: True
+ - name: test splunk_data_input_network
+ splunk.es.data_input_network:
+ name: "9001"
+ protocol: "tcp"
+ state: "absent"
+ - name: test splunk_coorelation_search
+ splunk.es.correlation_search:
+ name: "Test Demo Coorelation Search From Playbook"
+ description: "Test Demo Coorelation Search From Playbook, description."
+ search: 'source="/var/log/snort.log"'
+ state: "present"
+ - name: test splunk_adaptive_response_notable_event
+ splunk.es.adaptive_response_notable_event:
+ name: "Demo notable event from playbook"
+ correlation_search_name: "Test Demo Coorelation Search From Playbook"
+ description: "Test Demo notable event from playbook, description."
+ state: "present"
+ next_steps:
+ - ping
+ - nslookup
+ recommended_actions:
+ - script
+```
+
+### Define your collection search path at the Play level
+
+Below we specify our collection at the Play level which allows us to use the
+splunk modules without specifying the need for the FQCN.
+
+`splunk_with_collections_example.yml`
+```
+---
+- name: demo splunk
+ hosts: splunk
+ gather_facts: False
+ collections:
+ - splunk.es
+ tasks:
+ - name: test splunk_data_input_monitor
+ data_input_monitor:
+ name: "/var/log/demo.log"
+ state: "present"
+ recursive: True
+ - name: test splunk_data_input_network
+ data_input_network:
+ name: "9001"
+ protocol: "tcp"
+ state: "absent"
+ - name: test splunk_coorelation_search
+ correlation_search:
+ name: "Test Demo Coorelation Search From Playbook"
+ description: "Test Demo Coorelation Search From Playbook, description."
+ search: 'source="/var/log/snort.log"'
+ state: "present"
+ - name: test splunk_adaptive_response_notable_event
+ adaptive_response_notable_event:
+ name: "Demo notable event from playbook"
+ correlation_search_name: "Test Demo Coorelation Search From Playbook"
+ description: "Test Demo notable event from playbook, description."
+ state: "present"
+ next_steps:
+ - ping
+ - nslookup
+ recommended_actions:
+ - script
+```
+
+### Define your collection search path at the Block level
+
+Below we use the [`block`](https://docs.ansible.com/ansible/latest/user_guide/playbooks_blocks.html)
+level keyword, we are able to use the splunk modules without the need for the
+FQCN.
+
+`splunk_with_collections_block_example.yml`
+```
+---
+- name: demo splunk
+ hosts: splunk
+ gather_facts: False
+ tasks:
+ - name: collection namespace block
+ - name: test splunk_data_input_monitor
+ data_input_monitor:
+ name: "/var/log/demo.log"
+ state: "present"
+ recursive: True
+ - name: test splunk_data_input_network
+ data_input_network:
+ name: "9001"
+ protocol: "tcp"
+ state: "absent"
+ - name: test splunk_coorelation_search
+ correlation_search:
+ name: "Test Demo Coorelation Search From Playbook"
+ description: "Test Demo Coorelation Search From Playbook, description."
+ search: 'source="/var/log/snort.log"'
+ state: "present"
+ - name: test splunk_adaptive_response_notable_event
+ adaptive_response_notable_event:
+ name: "Demo notable event from playbook"
+ correlation_search_name: "Test Demo Coorelation Search From Playbook"
+ description: "Test Demo notable event from playbook, description."
+ state: "present"
+ next_steps:
+ - ping
+ - nslookup
+ recommended_actions:
+ - script
+ collections:
+ - splunk.es
+```
+
+## Contributing to this collection
+
+We welcome community contributions to this collection. If you find problems, please open an issue or create a PR against the [Splunk collection repository](https://github.com/ansible-collections/splunk.es). See [Contributing to Ansible-maintained collections](https://docs.ansible.com/ansible/devel/community/contributing_maintained_collections.html#contributing-maintained-collections) for complete details.
+
+You can also join us on:
+
+- Freenode IRC - ``#ansible-security`` Freenode channel
+
+See the [Ansible Community Guide](https://docs.ansible.com/ansible/latest/community/index.html) for details on contributing to Ansible.
+
+### Code of Conduct
+This collection follows the Ansible project's
+[Code of Conduct](https://docs.ansible.com/ansible/devel/community/code_of_conduct.html).
+Please read and familiarize yourself with this document.
+
+## Release notes
+
+Release notes are available [here](https://github.com/ansible-collections/splunk.es/blob/main/changelogs/CHANGELOG.rst).
+
+## Roadmap
+
+<!-- Optional. Include the roadmap for this collection, and the proposed release/versioning strategy so users can anticipate the upgrade/update cycle. -->
+
+## More information
+
+- [Ansible network resources](https://docs.ansible.com/ansible/latest/network/getting_started/network_resources.html)
+- [Ansible Collection overview](https://github.com/ansible-collections/overview)
+- [Ansible User guide](https://docs.ansible.com/ansible/latest/user_guide/index.html)
+- [Ansible Developer guide](https://docs.ansible.com/ansible/latest/dev_guide/index.html)
+- [Ansible Community code of conduct](https://docs.ansible.com/ansible/latest/community/code_of_conduct.html)
+
+## Licensing
+
+GNU General Public License v3.0 or later.
+
+See [LICENSE](https://www.gnu.org/licenses/gpl-3.0.txt) to see the full text.
+
+
+## Author Information
+
+[Ansible Security Automation Team](https://github.com/ansible-security)
diff --git a/collections-debian-merged/ansible_collections/splunk/es/bindep.txt b/collections-debian-merged/ansible_collections/splunk/es/bindep.txt
new file mode 100644
index 00000000..ba9c980f
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/splunk/es/bindep.txt
@@ -0,0 +1,6 @@
+# This is a cross-platform list tracking distribution packages needed by tests;
+# see https://docs.openstack.org/infra/bindep/ for additional information.
+
+gcc-c++ [doc test platform:rpm]
+python3-devel [test platform:rpm]
+python3 [test platform:rpm]
diff --git a/collections-debian-merged/ansible_collections/splunk/es/changelogs/CHANGELOG.rst b/collections-debian-merged/ansible_collections/splunk/es/changelogs/CHANGELOG.rst
new file mode 100644
index 00000000..bffd0f31
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/splunk/es/changelogs/CHANGELOG.rst
@@ -0,0 +1,33 @@
+==================================
+Splunk ES Collection Release Notes
+==================================
+
+.. contents:: Topics
+
+v1.0.2
+======
+
+Release Summary
+---------------
+
+- Re-releasing the 1.0.2 with updated galaxy file
+
+v1.0.1
+======
+
+Release Summary
+---------------
+
+- Releasing 1.0.1 with updated changelog.
+
+v1.0.0
+======
+
+New Modules
+-----------
+
+- adaptive_response_notable_event - Manage Splunk Enterprise Security Notable Event Adaptive Responses
+- correlation_search - Manage Splunk Enterprise Security Correlation Searches
+- correlation_search_info - Manage Splunk Enterprise Security Correlation Searches
+- data_input_monitor - Manage Splunk Data Inputs of type Monitor
+- data_input_network - Manage Splunk Data Inputs of type TCP or UDP
diff --git a/collections-debian-merged/ansible_collections/splunk/es/changelogs/changelog.yaml b/collections-debian-merged/ansible_collections/splunk/es/changelogs/changelog.yaml
new file mode 100644
index 00000000..2c79d14b
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/splunk/es/changelogs/changelog.yaml
@@ -0,0 +1,30 @@
+ancestor: null
+releases:
+ 1.0.0:
+ modules:
+ - description: Manage Splunk Enterprise Security Notable Event Adaptive Responses
+ name: splunk.es.adaptive_response_notable_event
+ namespace: ''
+ - description: Manage Splunk Enterprise Security Correlation Searches
+ name: splunk.es.correlation_search
+ namespace: ''
+ - description: Manage Splunk Enterprise Security Correlation Searches
+ name: splunk.es.correlation_search_info
+ namespace: ''
+ - description: Manage Splunk Data Inputs of type Monitor
+ name: splunk.es.data_input_monitor
+ namespace: ''
+ - description: Manage Splunk Data Inputs of type TCP or UDP
+ name: splunk.es.data_input_network
+ namespace: ''
+ release_date: '2020-06-22'
+ 1.0.1:
+ changes:
+ release_summary:
+ - Releasing 1.0.1 with updated changelog.
+ release_date: '2020-08-28'
+ 1.0.2:
+ changes:
+ release_summary:
+ - Re-releasing 1.0.1 with updated galaxy file.
+ release_date: '2020-09-1'
diff --git a/collections-debian-merged/ansible_collections/splunk/es/changelogs/config.yaml b/collections-debian-merged/ansible_collections/splunk/es/changelogs/config.yaml
new file mode 100644
index 00000000..3988ea9b
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/splunk/es/changelogs/config.yaml
@@ -0,0 +1,30 @@
+changelog_filename_template: CHANGELOG.rst
+changelog_filename_version_depth: 0
+changes_file: changelog.yaml
+changes_format: combined
+keep_fragments: false
+mention_ancestor: true
+new_plugins_after_name: removed_features
+notesdir: fragments
+prelude_section_name: release_summary
+prelude_section_title: Release Summary
+flatmap: true
+sections:
+- - major_changes
+ - Major Changes
+- - minor_changes
+ - Minor Changes
+- - breaking_changes
+ - Breaking Changes / Porting Guide
+- - deprecated_features
+ - Deprecated Features
+- - removed_features
+ - Removed Features (previously deprecated)
+- - security_fixes
+ - Security Fixes
+- - bugfixes
+ - Bugfixes
+- - known_issues
+ - Known Issues
+title: Splunk Enterprise Security Collection
+trivial_section_name: trivial
diff --git a/collections-debian-merged/ansible_collections/splunk/es/docs/splunk.es.adaptive_response_notable_event_module.rst b/collections-debian-merged/ansible_collections/splunk/es/docs/splunk.es.adaptive_response_notable_event_module.rst
new file mode 100644
index 00000000..0a979aab
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/splunk/es/docs/splunk.es.adaptive_response_notable_event_module.rst
@@ -0,0 +1,375 @@
+.. _splunk.es.adaptive_response_notable_event_module:
+
+
+*****************************************
+splunk.es.adaptive_response_notable_event
+*****************************************
+
+**Manage Splunk Enterprise Security Notable Event Adaptive Responses**
+
+
+Version added: 1.0.0
+
+.. contents::
+ :local:
+ :depth: 1
+
+
+Synopsis
+--------
+- This module allows for creation, deletion, and modification of Splunk Enterprise Security Notable Event Adaptive Responses that are associated with a correlation search
+
+
+
+
+Parameters
+----------
+
+.. raw:: html
+
+ <table border=0 cellpadding=0 class="documentation-table">
+ <tr>
+ <th colspan="1">Parameter</th>
+ <th>Choices/<font color="blue">Defaults</font></th>
+ <th width="100%">Comments</th>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>asset_extraction</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">list</span>
+ </div>
+ </td>
+ <td>
+ <ul style="margin: 0; padding: 0"><b>Choices:</b>
+ <li><div style="color: blue"><b>src</b>&nbsp;&larr;</div></li>
+ <li><div style="color: blue"><b>dest</b>&nbsp;&larr;</div></li>
+ <li><div style="color: blue"><b>dvc</b>&nbsp;&larr;</div></li>
+ <li><div style="color: blue"><b>orig_host</b>&nbsp;&larr;</div></li>
+ </ul>
+ <b>Default:</b><br/><div style="color: blue">["src", "dest", "dvc", "orig_host"]</div>
+ </td>
+ <td>
+ <div>list of assets to extract, select any one or many of the available choices</div>
+ <div>defaults to all available choices</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>correlation_search_name</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ / <span style="color: red">required</span>
+ </div>
+ </td>
+ <td>
+ </td>
+ <td>
+ <div>Name of correlation search to associate this notable event adaptive response with</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>default_owner</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ </div>
+ </td>
+ <td>
+ </td>
+ <td>
+ <div>Default owner of the notable event, if unset it will default to Splunk System Defaults</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>default_status</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ </div>
+ </td>
+ <td>
+ <ul style="margin: 0; padding: 0"><b>Choices:</b>
+ <li>unassigned</li>
+ <li>new</li>
+ <li>in progress</li>
+ <li>pending</li>
+ <li>resolved</li>
+ <li>closed</li>
+ </ul>
+ </td>
+ <td>
+ <div>Default status of the notable event, if unset it will default to Splunk System Defaults</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>description</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ / <span style="color: red">required</span>
+ </div>
+ </td>
+ <td>
+ </td>
+ <td>
+ <div>Description of the notable event, this will populate the description field for the web console</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>drill_down_earliest_offset</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ </div>
+ </td>
+ <td>
+ <b>Default:</b><br/><div style="color: blue">"$info_min_time$"</div>
+ </td>
+ <td>
+ <div>Set the amount of time before the triggering event to search for related events. For example, 2h. Use &quot;$info_min_time$&quot; to set the drill-down time to match the earliest time of the search</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>drill_down_latest_offset</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ </div>
+ </td>
+ <td>
+ <b>Default:</b><br/><div style="color: blue">"$info_max_time$"</div>
+ </td>
+ <td>
+ <div>Set the amount of time after the triggering event to search for related events. For example, 1m. Use &quot;$info_max_time$&quot; to set the drill-down time to match the latest time of the search</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>drill_down_name</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ </div>
+ </td>
+ <td>
+ </td>
+ <td>
+ <div>Name for drill down search, Supports variable substitution with fields from the matching event.</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>drill_down_search</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ </div>
+ </td>
+ <td>
+ </td>
+ <td>
+ <div>Drill down search, Supports variable substitution with fields from the matching event.</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>identity_extraction</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">list</span>
+ </div>
+ </td>
+ <td>
+ <ul style="margin: 0; padding: 0"><b>Choices:</b>
+ <li><div style="color: blue"><b>user</b>&nbsp;&larr;</div></li>
+ <li><div style="color: blue"><b>src_user</b>&nbsp;&larr;</div></li>
+ </ul>
+ <b>Default:</b><br/><div style="color: blue">["user", "src_user"]</div>
+ </td>
+ <td>
+ <div>list of identity fields to extract, select any one or many of the available choices</div>
+ <div>defaults to all available choices</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>investigation_profiles</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ </div>
+ </td>
+ <td>
+ </td>
+ <td>
+ <div>Investigation profile to assiciate the notable event with.</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>name</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ / <span style="color: red">required</span>
+ </div>
+ </td>
+ <td>
+ </td>
+ <td>
+ <div>Name of notable event</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>next_steps</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">list</span>
+ </div>
+ </td>
+ <td>
+ </td>
+ <td>
+ <div>List of adaptive responses that should be run next</div>
+ <div>Describe next steps and response actions that an analyst could take to address this threat.</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>recommended_actions</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">list</span>
+ </div>
+ </td>
+ <td>
+ </td>
+ <td>
+ <div>List of adaptive responses that are recommended to be run next</div>
+ <div>Identifying Recommended Adaptive Responses will highlight those actions for the analyst when looking at the list of response actions available, making it easier to find them among the longer list of available actions.</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>security_domain</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ </div>
+ </td>
+ <td>
+ <ul style="margin: 0; padding: 0"><b>Choices:</b>
+ <li>access</li>
+ <li>endpoint</li>
+ <li>network</li>
+ <li><div style="color: blue"><b>threat</b>&nbsp;&larr;</div></li>
+ <li>identity</li>
+ <li>audit</li>
+ </ul>
+ </td>
+ <td>
+ <div>Splunk Security Domain</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>severity</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ </div>
+ </td>
+ <td>
+ <ul style="margin: 0; padding: 0"><b>Choices:</b>
+ <li>informational</li>
+ <li>low</li>
+ <li>medium</li>
+ <li><div style="color: blue"><b>high</b>&nbsp;&larr;</div></li>
+ <li>critical</li>
+ <li>unknown</li>
+ </ul>
+ </td>
+ <td>
+ <div>Severity rating</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>state</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ / <span style="color: red">required</span>
+ </div>
+ </td>
+ <td>
+ <ul style="margin: 0; padding: 0"><b>Choices:</b>
+ <li>present</li>
+ <li>absent</li>
+ </ul>
+ </td>
+ <td>
+ <div>Add or remove a data source.</div>
+ </td>
+ </tr>
+ </table>
+ <br/>
+
+
+
+
+Examples
+--------
+
+.. code-block:: yaml+jinja
+
+ - name: Example of using splunk.es.adaptive_response_notable_event module
+ splunk.es.adaptive_response_notable_event:
+ name: "Example notable event from Ansible"
+ correlation_search_name: "Example Correlation Search From Ansible"
+ description: "Example notable event from Ansible, description."
+ state: "present"
+ next_steps:
+ - ping
+ - nslookup
+ recommended_actions:
+ - script
+ - ansiblesecurityautomation
+
+
+
+
+Status
+------
+
+
+Authors
+~~~~~~~
+
+- Ansible Security Automation Team (@maxamillion) <https://github.com/ansible-security>
diff --git a/collections-debian-merged/ansible_collections/splunk/es/docs/splunk.es.correlation_search_info_module.rst b/collections-debian-merged/ansible_collections/splunk/es/docs/splunk.es.correlation_search_info_module.rst
new file mode 100644
index 00000000..555d157d
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/splunk/es/docs/splunk.es.correlation_search_info_module.rst
@@ -0,0 +1,81 @@
+.. _splunk.es.correlation_search_info_module:
+
+
+*********************************
+splunk.es.correlation_search_info
+*********************************
+
+**Manage Splunk Enterprise Security Correlation Searches**
+
+
+Version added: 1.0.0
+
+.. contents::
+ :local:
+ :depth: 1
+
+
+Synopsis
+--------
+- This module allows for the query of Splunk Enterprise Security Correlation Searches
+
+
+
+
+Parameters
+----------
+
+.. raw:: html
+
+ <table border=0 cellpadding=0 class="documentation-table">
+ <tr>
+ <th colspan="1">Parameter</th>
+ <th>Choices/<font color="blue">Defaults</font></th>
+ <th width="100%">Comments</th>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>name</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ </div>
+ </td>
+ <td>
+ </td>
+ <td>
+ <div>Name of coorelation search</div>
+ </td>
+ </tr>
+ </table>
+ <br/>
+
+
+
+
+Examples
+--------
+
+.. code-block:: yaml+jinja
+
+ - name: Example usage of splunk.es.correlation_search_info
+ splunk.es.correlation_search_info:
+ name: "Name of correlation search"
+ register: scorrelation_search_info
+
+ - name: debug display information gathered
+ debug:
+ var: scorrelation_search_info
+
+
+
+
+Status
+------
+
+
+Authors
+~~~~~~~
+
+- Ansible Security Automation Team (@maxamillion) <https://github.com/ansible-security>
diff --git a/collections-debian-merged/ansible_collections/splunk/es/docs/splunk.es.correlation_search_module.rst b/collections-debian-merged/ansible_collections/splunk/es/docs/splunk.es.correlation_search_module.rst
new file mode 100644
index 00000000..ebfdffb9
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/splunk/es/docs/splunk.es.correlation_search_module.rst
@@ -0,0 +1,387 @@
+.. _splunk.es.correlation_search_module:
+
+
+****************************
+splunk.es.correlation_search
+****************************
+
+**Manage Splunk Enterprise Security Correlation Searches**
+
+
+Version added: 1.0.0
+
+.. contents::
+ :local:
+ :depth: 1
+
+
+Synopsis
+--------
+- This module allows for creation, deletion, and modification of Splunk Enterprise Security Correlation Searches
+
+
+
+
+Parameters
+----------
+
+.. raw:: html
+
+ <table border=0 cellpadding=0 class="documentation-table">
+ <tr>
+ <th colspan="1">Parameter</th>
+ <th>Choices/<font color="blue">Defaults</font></th>
+ <th width="100%">Comments</th>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>app</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ </div>
+ </td>
+ <td>
+ <b>Default:</b><br/><div style="color: blue">"SplunkEnterpriseSecuritySuite"</div>
+ </td>
+ <td>
+ <div>Splunk app to associate the correlation seach with</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>cron_schedule</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ </div>
+ </td>
+ <td>
+ <b>Default:</b><br/><div style="color: blue">"*/5 * * * *"</div>
+ </td>
+ <td>
+ <div>Enter a cron-style schedule.</div>
+ <div>For example <code>&#x27;*/5 * * * *&#x27;</code> (every 5 minutes) or <code>&#x27;0 21 * * *&#x27;</code> (every day at 9 PM).</div>
+ <div>Real-time searches use a default schedule of <code>&#x27;*/5 * * * *&#x27;</code>.</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>description</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ / <span style="color: red">required</span>
+ </div>
+ </td>
+ <td>
+ </td>
+ <td>
+ <div>Description of the coorelation search, this will populate the description field for the web console</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>name</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ / <span style="color: red">required</span>
+ </div>
+ </td>
+ <td>
+ </td>
+ <td>
+ <div>Name of coorelation search</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>schedule_priority</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ </div>
+ </td>
+ <td>
+ <ul style="margin: 0; padding: 0"><b>Choices:</b>
+ <li><div style="color: blue"><b>Default</b>&nbsp;&larr;</div></li>
+ <li>Higher</li>
+ <li>Highest</li>
+ </ul>
+ </td>
+ <td>
+ <div>Raise the scheduling priority of a report. Set to &quot;Higher&quot; to prioritize it above other searches of the same scheduling mode, or &quot;Highest&quot; to prioritize it above other searches regardless of mode. Use with discretion.</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>schedule_window</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ </div>
+ </td>
+ <td>
+ <b>Default:</b><br/><div style="color: blue">"0"</div>
+ </td>
+ <td>
+ <div>Let report run at any time within a window that opens at its scheduled run time, to improve efficiency when there are many concurrently scheduled reports. The &quot;auto&quot; setting automatically determines the best window width for the report.</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>scheduling</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ </div>
+ </td>
+ <td>
+ <ul style="margin: 0; padding: 0"><b>Choices:</b>
+ <li><div style="color: blue"><b>real-time</b>&nbsp;&larr;</div></li>
+ <li>continuous</li>
+ </ul>
+ </td>
+ <td>
+ <div>Controls the way the scheduler computes the next execution time of a scheduled search.</div>
+ <div>Learn more: https://docs.splunk.com/Documentation/Splunk/7.2.3/Report/Configurethepriorityofscheduledreports#Real-time_scheduling_and_continuous_scheduling</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>search</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ / <span style="color: red">required</span>
+ </div>
+ </td>
+ <td>
+ </td>
+ <td>
+ <div>SPL search string</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>state</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ / <span style="color: red">required</span>
+ </div>
+ </td>
+ <td>
+ <ul style="margin: 0; padding: 0"><b>Choices:</b>
+ <li>present</li>
+ <li>absent</li>
+ <li>enabled</li>
+ <li>disabled</li>
+ </ul>
+ </td>
+ <td>
+ <div>Add, remove, enable, or disiable a correlation search.</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>suppress_alerts</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">boolean</span>
+ </div>
+ </td>
+ <td>
+ <ul style="margin: 0; padding: 0"><b>Choices:</b>
+ <li><div style="color: blue"><b>no</b>&nbsp;&larr;</div></li>
+ <li>yes</li>
+ </ul>
+ </td>
+ <td>
+ <div>To suppress alerts from this correlation search or not</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>throttle_fields_to_group_by</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ </div>
+ </td>
+ <td>
+ </td>
+ <td>
+ <div>Type the fields to consider for matching events for throttling.</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>throttle_window_duration</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ </div>
+ </td>
+ <td>
+ </td>
+ <td>
+ <div>How much time to ignore other events that match the field values specified in Fields to group by.</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>time_earliest</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ </div>
+ </td>
+ <td>
+ <b>Default:</b><br/><div style="color: blue">"-24h"</div>
+ </td>
+ <td>
+ <div>Earliest time using relative time modifiers.</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>time_latest</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ </div>
+ </td>
+ <td>
+ <b>Default:</b><br/><div style="color: blue">"now"</div>
+ </td>
+ <td>
+ <div>Latest time using relative time modifiers.</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>trigger_alert_when</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ </div>
+ </td>
+ <td>
+ <ul style="margin: 0; padding: 0"><b>Choices:</b>
+ <li><div style="color: blue"><b>number of events</b>&nbsp;&larr;</div></li>
+ <li>number of results</li>
+ <li>number of hosts</li>
+ <li>number of sources</li>
+ </ul>
+ </td>
+ <td>
+ <div>Raise the scheduling priority of a report. Set to &quot;Higher&quot; to prioritize it above other searches of the same scheduling mode, or &quot;Highest&quot; to prioritize it above other searches regardless of mode. Use with discretion.</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>trigger_alert_when_condition</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ </div>
+ </td>
+ <td>
+ <ul style="margin: 0; padding: 0"><b>Choices:</b>
+ <li><div style="color: blue"><b>greater than</b>&nbsp;&larr;</div></li>
+ <li>less than</li>
+ <li>equal to</li>
+ <li>not equal to</li>
+ <li>drops by</li>
+ <li>rises by</li>
+ </ul>
+ </td>
+ <td>
+ <div>Conditional to pass to <code>trigger_alert_when</code></div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>trigger_alert_when_value</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ </div>
+ </td>
+ <td>
+ <b>Default:</b><br/><div style="color: blue">"10"</div>
+ </td>
+ <td>
+ <div>Value to pass to <code>trigger_alert_when</code></div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>ui_dispatch_context</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ </div>
+ </td>
+ <td>
+ </td>
+ <td>
+ <div>Set an app to use for links such as the drill-down search in a notable event or links in an email adaptive response action. If None, uses the Application Context.</div>
+ </td>
+ </tr>
+ </table>
+ <br/>
+
+
+Notes
+-----
+
+.. note::
+ - The following options are not yet supported: throttle_window_duration, throttle_fields_to_group_by, and adaptive_response_actions
+
+
+
+
+Examples
+--------
+
+.. code-block:: yaml+jinja
+
+ - name: Example of creating a correlation search with splunk.es.coorelation_search
+ splunk.es.correlation_search:
+ name: "Example Coorelation Search From Ansible"
+ description: "Example Coorelation Search From Ansible, description."
+ search: 'source="/var/log/snort.log"'
+ state: "present"
+
+
+
+
+Status
+------
+
+
+Authors
+~~~~~~~
+
+- Ansible Security Automation Team (@maxamillion) <https://github.com/ansible-security>
diff --git a/collections-debian-merged/ansible_collections/splunk/es/docs/splunk.es.data_input_monitor_module.rst b/collections-debian-merged/ansible_collections/splunk/es/docs/splunk.es.data_input_monitor_module.rst
new file mode 100644
index 00000000..966f90d8
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/splunk/es/docs/splunk.es.data_input_monitor_module.rst
@@ -0,0 +1,359 @@
+.. _splunk.es.data_input_monitor_module:
+
+
+****************************
+splunk.es.data_input_monitor
+****************************
+
+**Manage Splunk Data Inputs of type Monitor**
+
+
+Version added: 1.0.0
+
+.. contents::
+ :local:
+ :depth: 1
+
+
+Synopsis
+--------
+- This module allows for addition or deletion of File and Directory Monitor Data Inputs in Splunk.
+
+
+
+
+Parameters
+----------
+
+.. raw:: html
+
+ <table border=0 cellpadding=0 class="documentation-table">
+ <tr>
+ <th colspan="1">Parameter</th>
+ <th>Choices/<font color="blue">Defaults</font></th>
+ <th width="100%">Comments</th>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>blacklist</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ </div>
+ </td>
+ <td>
+ </td>
+ <td>
+ <div>Specify a regular expression for a file path. The file path that matches this regular expression is not indexed.</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>check_index</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">boolean</span>
+ </div>
+ </td>
+ <td>
+ <ul style="margin: 0; padding: 0"><b>Choices:</b>
+ <li><div style="color: blue"><b>no</b>&nbsp;&larr;</div></li>
+ <li>yes</li>
+ </ul>
+ </td>
+ <td>
+ <div>If set to <code>True</code>, the index value is checked to ensure that it is the name of a valid index.</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>check_path</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">boolean</span>
+ </div>
+ </td>
+ <td>
+ <ul style="margin: 0; padding: 0"><b>Choices:</b>
+ <li>no</li>
+ <li>yes</li>
+ </ul>
+ </td>
+ <td>
+ <div>If set to <code>True</code>, the name value is checked to ensure that it exists.</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>crc_salt</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ </div>
+ </td>
+ <td>
+ </td>
+ <td>
+ <div>A string that modifies the file tracking identity for files in this input. The magic value &lt;SOURCE&gt; invokes special behavior (see admin documentation).</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>disabled</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">boolean</span>
+ </div>
+ </td>
+ <td>
+ <ul style="margin: 0; padding: 0"><b>Choices:</b>
+ <li><div style="color: blue"><b>no</b>&nbsp;&larr;</div></li>
+ <li>yes</li>
+ </ul>
+ </td>
+ <td>
+ <div>Indicates if input monitoring is disabled.</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>followTail</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">boolean</span>
+ </div>
+ </td>
+ <td>
+ <ul style="margin: 0; padding: 0"><b>Choices:</b>
+ <li><div style="color: blue"><b>no</b>&nbsp;&larr;</div></li>
+ <li>yes</li>
+ </ul>
+ </td>
+ <td>
+ <div>If set to <code>True</code>, files that are seen for the first time is read from the end.</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>host</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ </div>
+ </td>
+ <td>
+ </td>
+ <td>
+ <div>The value to populate in the host field for events from this data input.</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>host_regex</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ </div>
+ </td>
+ <td>
+ </td>
+ <td>
+ <div>Specify a regular expression for a file path. If the path for a file matches this regular expression, the captured value is used to populate the host field for events from this data input. The regular expression must have one capture group.</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>host_segment</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">integer</span>
+ </div>
+ </td>
+ <td>
+ </td>
+ <td>
+ <div>Use the specified slash-separate segment of the filepath as the host field value.</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>ignore_older_than</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ </div>
+ </td>
+ <td>
+ </td>
+ <td>
+ <div>Specify a time value. If the modification time of a file being monitored falls outside of this rolling time window, the file is no longer being monitored.</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>index</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ </div>
+ </td>
+ <td>
+ </td>
+ <td>
+ <div>Which index events from this input should be stored in. Defaults to default.</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>name</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ / <span style="color: red">required</span>
+ </div>
+ </td>
+ <td>
+ </td>
+ <td>
+ <div>The file or directory path to monitor on the system.</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>recursive</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">boolean</span>
+ </div>
+ </td>
+ <td>
+ <ul style="margin: 0; padding: 0"><b>Choices:</b>
+ <li><div style="color: blue"><b>no</b>&nbsp;&larr;</div></li>
+ <li>yes</li>
+ </ul>
+ </td>
+ <td>
+ <div>Setting this to False prevents monitoring of any subdirectories encountered within this data input.</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>rename_source</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ </div>
+ </td>
+ <td>
+ </td>
+ <td>
+ <div>The value to populate in the source field for events from this data input. The same source should not be used for multiple data inputs.</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>sourcetype</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ </div>
+ </td>
+ <td>
+ </td>
+ <td>
+ <div>The value to populate in the sourcetype field for incoming events.</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>state</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ / <span style="color: red">required</span>
+ </div>
+ </td>
+ <td>
+ <ul style="margin: 0; padding: 0"><b>Choices:</b>
+ <li>present</li>
+ <li>absent</li>
+ </ul>
+ </td>
+ <td>
+ <div>Add or remove a data source.</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>time_before_close</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">integer</span>
+ </div>
+ </td>
+ <td>
+ </td>
+ <td>
+ <div>When Splunk software reaches the end of a file that is being read, the file is kept open for a minimum of the number of seconds specified in this value. After this period has elapsed, the file is checked again for more data.</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>whitelist</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ </div>
+ </td>
+ <td>
+ </td>
+ <td>
+ <div>Specify a regular expression for a file path. Only file paths that match this regular expression are indexed.</div>
+ </td>
+ </tr>
+ </table>
+ <br/>
+
+
+
+
+Examples
+--------
+
+.. code-block:: yaml+jinja
+
+ - name: Example adding data input monitor with splunk.es.data_input_monitor
+ splunk.es.data_input_monitor:
+ name: "/var/log/example.log"
+ state: "present"
+ recursive: True
+
+
+
+
+Status
+------
+
+
+Authors
+~~~~~~~
+
+- Ansible Security Automation Team (@maxamillion) <https://github.com/ansible-security>
diff --git a/collections-debian-merged/ansible_collections/splunk/es/docs/splunk.es.data_input_network_module.rst b/collections-debian-merged/ansible_collections/splunk/es/docs/splunk.es.data_input_network_module.rst
new file mode 100644
index 00000000..35dcc506
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/splunk/es/docs/splunk.es.data_input_network_module.rst
@@ -0,0 +1,298 @@
+.. _splunk.es.data_input_network_module:
+
+
+****************************
+splunk.es.data_input_network
+****************************
+
+**Manage Splunk Data Inputs of type TCP or UDP**
+
+
+Version added: 1.0.0
+
+.. contents::
+ :local:
+ :depth: 1
+
+
+Synopsis
+--------
+- This module allows for addition or deletion of TCP and UDP Data Inputs in Splunk.
+
+
+
+
+Parameters
+----------
+
+.. raw:: html
+
+ <table border=0 cellpadding=0 class="documentation-table">
+ <tr>
+ <th colspan="1">Parameter</th>
+ <th>Choices/<font color="blue">Defaults</font></th>
+ <th width="100%">Comments</th>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>connection_host</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ </div>
+ </td>
+ <td>
+ <ul style="margin: 0; padding: 0"><b>Choices:</b>
+ <li><div style="color: blue"><b>ip</b>&nbsp;&larr;</div></li>
+ <li>dns</li>
+ <li>none</li>
+ </ul>
+ </td>
+ <td>
+ <div>Set the host for the remote server that is sending data.</div>
+ <div><code>ip</code> sets the host to the IP address of the remote server sending data.</div>
+ <div><code>dns</code> sets the host to the reverse DNS entry for the IP address of the remote server sending data.</div>
+ <div><code>none</code> leaves the host as specified in inputs.conf, which is typically the Splunk system hostname.</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>datatype</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ </div>
+ </td>
+ <td>
+ <ul style="margin: 0; padding: 0"><b>Choices:</b>
+ <li>cooked</li>
+ <li><div style="color: blue"><b>raw</b>&nbsp;&larr;</div></li>
+ </ul>
+ </td>
+ <td>
+ <div>Forwarders can transmit three types of data: raw, unparsed, or parsed. <code>cooked</code> data refers to parsed and unparsed formats.</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>host</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ </div>
+ </td>
+ <td>
+ </td>
+ <td>
+ <div>Host from which the indexer gets data.</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>index</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ </div>
+ </td>
+ <td>
+ </td>
+ <td>
+ <div>default Index to store generated events.</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>name</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ / <span style="color: red">required</span>
+ </div>
+ </td>
+ <td>
+ </td>
+ <td>
+ <div>The input port which receives raw data.</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>protocol</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ / <span style="color: red">required</span>
+ </div>
+ </td>
+ <td>
+ <ul style="margin: 0; padding: 0"><b>Choices:</b>
+ <li>tcp</li>
+ <li>udp</li>
+ </ul>
+ </td>
+ <td>
+ <div>Choose between tcp or udp</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>queue</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ </div>
+ </td>
+ <td>
+ <ul style="margin: 0; padding: 0"><b>Choices:</b>
+ <li><div style="color: blue"><b>parsingQueue</b>&nbsp;&larr;</div></li>
+ <li>indexQueue</li>
+ </ul>
+ </td>
+ <td>
+ <div>Specifies where the input processor should deposit the events it reads. Defaults to parsingQueue.</div>
+ <div>Set queue to parsingQueue to apply props.conf and other parsing rules to your data. For more information about props.conf and rules for timestamping and linebreaking, refer to props.conf and the online documentation at &quot;Monitor files and directories with inputs.conf&quot;</div>
+ <div>Set queue to indexQueue to send your data directly into the index.</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>rawTcpDoneTimeout</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">integer</span>
+ </div>
+ </td>
+ <td>
+ <b>Default:</b><br/><div style="color: blue">10</div>
+ </td>
+ <td>
+ <div>Specifies in seconds the timeout value for adding a Done-key.</div>
+ <div>If a connection over the port specified by name remains idle after receiving data for specified number of seconds, it adds a Done-key. This implies the last event is completely received.</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>restrictToHost</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ </div>
+ </td>
+ <td>
+ </td>
+ <td>
+ <div>Allows for restricting this input to only accept data from the host specified here.</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>source</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ </div>
+ </td>
+ <td>
+ </td>
+ <td>
+ <div>Sets the source key/field for events from this input. Defaults to the input file path.</div>
+ <div>Sets the source key initial value. The key is used during parsing/indexing, in particular to set the source field during indexing. It is also the source field used at search time. As a convenience, the chosen string is prepended with &#x27;source::&#x27;.</div>
+ <div>Note: Overriding the source key is generally not recommended. Typically, the input layer provides a more accurate string to aid in problem analysis and investigation, accurately recording the file from which the data was retrieved. Consider use of source types, tagging, and search wildcards before overriding this value.</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>sourcetype</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ </div>
+ </td>
+ <td>
+ </td>
+ <td>
+ <div>Set the source type for events from this input.</div>
+ <div>&quot;sourcetype=&quot; is automatically prepended to &lt;string&gt;.</div>
+ <div>Defaults to audittrail (if signedaudit=True) or fschange (if signedaudit=False).</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>ssl</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">boolean</span>
+ </div>
+ </td>
+ <td>
+ <ul style="margin: 0; padding: 0"><b>Choices:</b>
+ <li>no</li>
+ <li>yes</li>
+ </ul>
+ </td>
+ <td>
+ <div>Enable or disble ssl for the data stream</div>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="1">
+ <div class="ansibleOptionAnchor" id="parameter-"></div>
+ <b>state</b>
+ <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
+ <div style="font-size: small">
+ <span style="color: purple">string</span>
+ </div>
+ </td>
+ <td>
+ <ul style="margin: 0; padding: 0"><b>Choices:</b>
+ <li><div style="color: blue"><b>present</b>&nbsp;&larr;</div></li>
+ <li>absent</li>
+ <li>enabled</li>
+ <li>disable</li>
+ </ul>
+ </td>
+ <td>
+ <div>Enable, disable, create, or destroy</div>
+ </td>
+ </tr>
+ </table>
+ <br/>
+
+
+
+
+Examples
+--------
+
+.. code-block:: yaml+jinja
+
+ - name: Example adding data input network with splunk.es.data_input_network
+ splunk.es.data_input_network:
+ name: "8099"
+ protocol: "tcp"
+ state: "present"
+
+
+
+
+Status
+------
+
+
+Authors
+~~~~~~~
+
+- Ansible Security Automation Team (@maxamillion) <https://github.com/ansible-security>
diff --git a/collections-debian-merged/ansible_collections/splunk/es/docs/splunk.es.splunk_httpapi.rst b/collections-debian-merged/ansible_collections/splunk/es/docs/splunk.es.splunk_httpapi.rst
new file mode 100644
index 00000000..b182bab4
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/splunk/es/docs/splunk.es.splunk_httpapi.rst
@@ -0,0 +1,43 @@
+.. _splunk.es.splunk_httpapi:
+
+
+****************
+splunk.es.splunk
+****************
+
+**HttpApi Plugin for Splunk**
+
+
+Version added: 1.0
+
+.. contents::
+ :local:
+ :depth: 1
+
+
+Synopsis
+--------
+- This HttpApi plugin provides methods to connect to Splunk over a HTTP(S)-based api.
+
+
+
+
+
+
+
+
+
+
+
+Status
+------
+
+
+Authors
+~~~~~~~
+
+- Ansible Security Automation Team
+
+
+.. hint::
+ Configuration entries for each entry type have a low to high priority order. For example, a variable that is lower in the list will override a variable that is higher up.
diff --git a/collections-debian-merged/ansible_collections/splunk/es/meta/runtime.yml b/collections-debian-merged/ansible_collections/splunk/es/meta/runtime.yml
new file mode 100644
index 00000000..b8961b14
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/splunk/es/meta/runtime.yml
@@ -0,0 +1,2 @@
+---
+requires_ansible: '>=2.9,<2.11'
diff --git a/collections-debian-merged/ansible_collections/splunk/es/plugins/httpapi/splunk.py b/collections-debian-merged/ansible_collections/splunk/es/plugins/httpapi/splunk.py
new file mode 100644
index 00000000..7ee7ba0d
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/splunk/es/plugins/httpapi/splunk.py
@@ -0,0 +1,73 @@
+# (c) 2019 Red Hat Inc.
+# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
+
+from __future__ import absolute_import, division, print_function
+
+__metaclass__ = type
+
+DOCUMENTATION = """
+---
+author: Ansible Security Automation Team
+httpapi : splunk
+short_description: HttpApi Plugin for Splunk
+description:
+ - This HttpApi plugin provides methods to connect to Splunk over a
+ HTTP(S)-based api.
+version_added: "1.0"
+"""
+
+import json
+import sys
+
+from ansible.module_utils.basic import to_text
+from ansible.errors import AnsibleConnectionFailure
+from ansible.module_utils.six.moves.urllib.error import HTTPError
+from ansible.plugins.httpapi import HttpApiBase
+from ansible.module_utils.connection import ConnectionError
+
+BASE_HEADERS = {"Content-Type": "application/json"}
+
+
+class HttpApi(HttpApiBase):
+ def send_request(self, request_method, path, payload=None):
+ # payload = json.dumps(payload) if payload else '{}'
+
+ try:
+ self._display_request(request_method, path)
+ response, response_data = self.connection.send(
+ path,
+ payload,
+ method=request_method,
+ headers=BASE_HEADERS,
+ force_basic_auth=True,
+ )
+ value = self._get_response_value(response_data)
+
+ return response.getcode(), self._response_to_json(value)
+ except AnsibleConnectionFailure as e:
+ self.connection.queue_message("vvv", "AnsibleConnectionFailure: %s" % e)
+ if to_text("Could not connect to") in to_text(e):
+ raise
+ if to_text("401") in to_text(e):
+ return 401, "Authentication failure"
+ else:
+ return 404, "Object not found"
+ except HTTPError as e:
+ error = json.loads(e.read())
+ return e.code, error
+
+ def _display_request(self, request_method, path):
+ self.connection.queue_message(
+ "vvvv",
+ "Web Services: %s %s/%s" % (request_method, self.connection._url, path),
+ )
+
+ def _get_response_value(self, response_data):
+ return to_text(response_data.getvalue())
+
+ def _response_to_json(self, response_text):
+ try:
+ return json.loads(response_text) if response_text else {}
+ # JSONDecodeError only available on Python 3.5+
+ except ValueError:
+ raise ConnectionError("Invalid JSON response: %s" % response_text)
diff --git a/collections-debian-merged/ansible_collections/splunk/es/plugins/module_utils/splunk.py b/collections-debian-merged/ansible_collections/splunk/es/plugins/module_utils/splunk.py
new file mode 100644
index 00000000..01d7b2db
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/splunk/es/plugins/module_utils/splunk.py
@@ -0,0 +1,153 @@
+# -*- coding: utf-8 -*-
+
+# (c) 2018, Adam Miller (admiller@redhat.com)
+# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
+
+from __future__ import absolute_import, division, print_function
+
+__metaclass__ = type
+
+from ansible.module_utils.urls import CertificateError
+from ansible.module_utils.six.moves.urllib.parse import urlencode, quote_plus
+from ansible.module_utils.connection import ConnectionError
+from ansible.module_utils.six.moves.urllib.error import HTTPError
+from ansible.module_utils.connection import Connection
+from ansible.module_utils._text import to_text
+
+import json
+
+
+def parse_splunk_args(module):
+ """
+ Get the valid fields that should be passed to the REST API as urlencoded
+ data so long as the argument specification to the module follows the
+ convention:
+ 1) name field is Required to be passed as data to REST API
+ 2) all module argspec items that should be passed to data are not
+ Required by the module and are set to default=None
+ """
+ try:
+ splunk_data = {}
+ for argspec in module.argument_spec:
+ if (
+ "default" in module.argument_spec[argspec]
+ and module.argument_spec[argspec]["default"] is None
+ and module.params[argspec] is not None
+ ):
+ splunk_data[argspec] = module.params[argspec]
+ return splunk_data
+ except TypeError as e:
+ module.fail_json(
+ msg="Invalid data type provided for splunk module_util.parse_splunk_args: {0}".format(
+ e
+ )
+ )
+
+
+class SplunkRequest(object):
+ def __init__(self, module, headers=None, keymap=None, not_rest_data_keys=None):
+
+ self.module = module
+ self.connection = Connection(self.module._socket_path)
+
+ # The Splunk REST API endpoints often use keys that aren't pythonic so
+ # we need to handle that with a mapping to allow keys to be proper
+ # variables in the module argspec
+ if keymap is None:
+ self.keymap = {}
+ else:
+ self.keymap = keymap
+
+ # This allows us to exclude specific argspec keys from being included by
+ # the rest data that don't follow the splunk_* naming convention
+ if not_rest_data_keys is None:
+ self.not_rest_data_keys = []
+ else:
+ self.not_rest_data_keys = not_rest_data_keys
+ self.not_rest_data_keys.append("validate_certs")
+
+ def _httpapi_error_handle(self, method, uri, payload=None):
+
+ try:
+ code, response = self.connection.send_request(method, uri, payload=payload)
+ except ConnectionError as e:
+ self.module.fail_json(msg="connection error occurred: {0}".format(e))
+ except CertificateError as e:
+ self.module.fail_json(msg="certificate error occurred: {0}".format(e))
+ except ValueError as e:
+ self.module.fail_json(msg="certificate not found: {0}".format(e))
+
+ if code == 404:
+ if to_text(u"Object not found") in to_text(response) or to_text(
+ u"Could not find object"
+ ) in to_text(response):
+ return {}
+
+ if not (code >= 200 and code < 300):
+ self.module.fail_json(
+ msg="Splunk httpapi returned error {0} with message {1}".format(
+ code, response
+ )
+ )
+
+ return response
+
+ def get(self, url, **kwargs):
+ return self._httpapi_error_handle("GET", url, **kwargs)
+
+ def put(self, url, **kwargs):
+ return self._httpapi_error_handle("PUT", url, **kwargs)
+
+ def post(self, url, **kwargs):
+ return self._httpapi_error_handle("POST", url, **kwargs)
+
+ def delete(self, url, **kwargs):
+ return self._httpapi_error_handle("DELETE", url, **kwargs)
+
+ def get_data(self):
+ """
+ Get the valid fields that should be passed to the REST API as urlencoded
+ data so long as the argument specification to the module follows the
+ convention:
+ - the key to the argspec item does not start with splunk_
+ - the key does not exist in the not_data_keys list
+ """
+ try:
+ splunk_data = {}
+ for param in self.module.params:
+ if (self.module.params[param]) is not None and (
+ param not in self.not_rest_data_keys
+ ):
+ if param in self.keymap:
+ splunk_data[self.keymap[param]] = self.module.params[param]
+ else:
+ splunk_data[param] = self.module.params[param]
+ return splunk_data
+
+ except TypeError as e:
+ self.module.fail_json(msg="invalid data type provided: {0}".format(e))
+
+ def get_urlencoded_data(self):
+ return urlencode(self.get_data())
+
+ def get_by_path(self, rest_path):
+ """
+ GET attributes of a monitor by rest path
+ """
+
+ return self.get("/{0}?output_mode=json".format(rest_path))
+
+ def delete_by_path(self, rest_path):
+ """
+ DELETE attributes of a monitor by rest path
+ """
+
+ return self.delete("/{0}?output_mode=json".format(rest_path))
+
+ def create_update(self, rest_path, data=None):
+ """
+ Create or Update a file/directory monitor data input in Splunk
+ """
+ if data is not None:
+ data = self.get_urlencoded_data()
+ return self.post("/{0}?output_mode=json".format(rest_path), payload=data)
diff --git a/collections-debian-merged/ansible_collections/splunk/es/plugins/modules/adaptive_response_notable_event.py b/collections-debian-merged/ansible_collections/splunk/es/plugins/modules/adaptive_response_notable_event.py
new file mode 100644
index 00000000..631857a7
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/splunk/es/plugins/modules/adaptive_response_notable_event.py
@@ -0,0 +1,417 @@
+#!/usr/bin/python
+# -*- coding: utf-8 -*-
+# https://github.com/ansible/ansible/issues/65816
+# https://github.com/PyCQA/pylint/issues/214
+
+# (c) 2018, Adam Miller (admiller@redhat.com)
+# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
+
+from __future__ import absolute_import, division, print_function
+
+__metaclass__ = type
+
+DOCUMENTATION = """
+---
+module: adaptive_response_notable_event
+short_description: Manage Splunk Enterprise Security Notable Event Adaptive Responses
+description:
+ - This module allows for creation, deletion, and modification of Splunk
+ Enterprise Security Notable Event Adaptive Responses that are associated
+ with a correlation search
+version_added: "1.0.0"
+options:
+ name:
+ description:
+ - Name of notable event
+ required: true
+ type: str
+ correlation_search_name:
+ description:
+ - Name of correlation search to associate this notable event adaptive response with
+ required: true
+ type: str
+ description:
+ description:
+ - Description of the notable event, this will populate the description field for the web console
+ required: true
+ type: str
+ state:
+ description:
+ - Add or remove a data source.
+ required: true
+ choices: [ "present", "absent" ]
+ type: str
+ security_domain:
+ description:
+ - Splunk Security Domain
+ type: str
+ required: False
+ choices:
+ - "access"
+ - "endpoint"
+ - "network"
+ - "threat"
+ - "identity"
+ - "audit"
+ default: "threat"
+ severity:
+ description:
+ - Severity rating
+ type: str
+ required: False
+ choices:
+ - "informational"
+ - "low"
+ - "medium"
+ - "high"
+ - "critical"
+ - "unknown"
+ default: "high"
+ default_owner:
+ description:
+ - Default owner of the notable event, if unset it will default to Splunk System Defaults
+ type: str
+ required: False
+ default_status:
+ description:
+ - Default status of the notable event, if unset it will default to Splunk System Defaults
+ type: str
+ required: False
+ choices:
+ - "unassigned"
+ - "new"
+ - "in progress"
+ - "pending"
+ - "resolved"
+ - "closed"
+ drill_down_name:
+ description:
+ - Name for drill down search, Supports variable substitution with fields from the matching event.
+ type: str
+ required: False
+ drill_down_search:
+ description:
+ - Drill down search, Supports variable substitution with fields from the matching event.
+ type: str
+ required: False
+ drill_down_earliest_offset:
+ description:
+ - Set the amount of time before the triggering event to search for related
+ events. For example, 2h. Use \"$info_min_time$\" to set the drill-down time
+ to match the earliest time of the search
+ type: str
+ required: False
+ default: \"$info_min_time$\"
+ drill_down_latest_offset:
+ description:
+ - Set the amount of time after the triggering event to search for related
+ events. For example, 1m. Use \"$info_max_time$\" to set the drill-down
+ time to match the latest time of the search
+ type: str
+ required: False
+ default: \"$info_max_time$\"
+ investigation_profiles:
+ description:
+ - Investigation profile to assiciate the notable event with.
+ type: str
+ required: False
+ next_steps:
+ description:
+ - List of adaptive responses that should be run next
+ - Describe next steps and response actions that an analyst could take to address this threat.
+ type: list
+ required: False
+ recommended_actions:
+ description:
+ - List of adaptive responses that are recommended to be run next
+ - Identifying Recommended Adaptive Responses will highlight those actions
+ for the analyst when looking at the list of response actions available,
+ making it easier to find them among the longer list of available actions.
+ type: list
+ required: False
+ asset_extraction:
+ description:
+ - list of assets to extract, select any one or many of the available choices
+ - defaults to all available choices
+ type: list
+ choices:
+ - src
+ - dest
+ - dvc
+ - orig_host
+ default:
+ - src
+ - dest
+ - dvc
+ - orig_host
+ required: False
+ identity_extraction:
+ description:
+ - list of identity fields to extract, select any one or many of the available choices
+ - defaults to all available choices
+ type: list
+ choices:
+ - user
+ - src_user
+ default:
+ - user
+ - src_user
+ required: False
+
+author: Ansible Security Automation Team (@maxamillion) <https://github.com/ansible-security>
+"""
+# FIXME - adaptive response action association is probaby going to need to be a separate module we stitch together in a role
+
+EXAMPLES = """
+- name: Example of using splunk.es.adaptive_response_notable_event module
+ splunk.es.adaptive_response_notable_event:
+ name: "Example notable event from Ansible"
+ correlation_search_name: "Example Correlation Search From Ansible"
+ description: "Example notable event from Ansible, description."
+ state: "present"
+ next_steps:
+ - ping
+ - nslookup
+ recommended_actions:
+ - script
+ - ansiblesecurityautomation
+"""
+
+from ansible.module_utils.basic import AnsibleModule
+from ansible.module_utils._text import to_text
+
+from ansible.module_utils.urls import Request
+from ansible.module_utils.six.moves.urllib.parse import urlencode, quote_plus
+from ansible.module_utils.six.moves.urllib.error import HTTPError
+from ansible_collections.splunk.es.plugins.module_utils.splunk import (
+ SplunkRequest,
+ parse_splunk_args,
+)
+
+import copy
+import json
+
+
+def main():
+
+ argspec = dict(
+ name=dict(required=True, type="str"),
+ correlation_search_name=dict(required=True, type="str"),
+ description=dict(required=True, type="str"),
+ state=dict(choices=["present", "absent"], required=True),
+ security_domain=dict(
+ choices=["access", "endpoint", "network", "threat", "identity", "audit"],
+ required=False,
+ default="threat",
+ ),
+ severity=dict(
+ choices=["informational", "low", "medium", "high", "critical", "unknown"],
+ required=False,
+ default="high",
+ ),
+ default_owner=dict(required=False, type="str"),
+ default_status=dict(
+ choices=[
+ "unassigned",
+ "new",
+ "in progress",
+ "pending",
+ "resolved",
+ "closed",
+ ],
+ required=False,
+ default="",
+ ),
+ drill_down_name=dict(required=False, type="str"),
+ drill_down_search=dict(required=False, type="str"),
+ drill_down_earliest_offset=dict(
+ required=False, type="str", default="$info_min_time$"
+ ),
+ drill_down_latest_offset=dict(
+ required=False, type="str", default="$info_max_time$"
+ ),
+ investigation_profiles=dict(required=False, type="str"),
+ next_steps=dict(required=False, type="list", default=[]),
+ recommended_actions=dict(required=False, type="list", default=[]),
+ asset_extraction=dict(
+ required=False,
+ type="list",
+ default=["src", "dest", "dvc", "orig_host"],
+ choices=["src", "dest", "dvc", "orig_host"],
+ ),
+ identity_extraction=dict(
+ required=False,
+ type="list",
+ default=["user", "src_user"],
+ choices=["user", "src_user"],
+ ),
+ )
+
+ module = AnsibleModule(argument_spec=argspec, supports_check_mode=True)
+
+ splunk_request = SplunkRequest(
+ module,
+ headers={"Content-Type": "application/x-www-form-urlencoded"},
+ not_rest_data_keys=["state"],
+ )
+
+ query_dict = splunk_request.get_by_path(
+ "servicesNS/nobody/SplunkEnterpriseSecuritySuite/saved/searches/{0}".format(
+ quote_plus(module.params["correlation_search_name"])
+ )
+ )
+
+ # Have to custom craft the data here because they overload the saved searches
+ # endpoint in the rest api and we want to hide the nuance from the user
+ request_post_data = {}
+
+ # FIXME need to figure out how to properly support these, the possible values appear to
+ # be dynamically created based on what the search is indexing
+ # request_post_data['action.notable.param.extract_assets'] = '[\"src\",\"dest\",\"dvc\",\"orig_host\"]'
+ # request_post_data['action.notable.param.extract_identities'] = [\"src_user\",\"user\"]
+ if module.params["next_steps"]:
+ if len(module.params["next_steps"]) == 1:
+ next_steps = "[[action|{0}]]".format(module.params["next_steps"][0])
+ else:
+ next_steps = ""
+ for next_step in module.params["next_steps"]:
+ if next_steps:
+ next_steps += "\n[[action|{0}]]".format(next_step)
+ else:
+ next_steps = "[[action|{0}]]".format(next_step)
+
+ # NOTE: version:1 appears to be hard coded when you create this via the splunk web UI
+ # but I don't know what it is/means because there's no docs on it
+ next_steps_dict = {"version": 1, "data": next_steps}
+ request_post_data["action.notable.param.next_steps"] = json.dumps(
+ next_steps_dict
+ )
+
+ if module.params["recommended_actions"]:
+ if len(module.params["recommended_actions"]) == 1:
+ request_post_data[
+ "action.notable.param.recommended_actions"
+ ] = module.params["recommended_actions"][0]
+ else:
+ request_post_data["action.notable.param.recommended_actions"] = ",".join(
+ module.params["recommended_actions"]
+ )
+
+ request_post_data["action.notable.param.rule_description"] = module.params[
+ "description"
+ ]
+ request_post_data["action.notable.param.rule_title"] = module.params["name"]
+ request_post_data["action.notable.param.security_domain"] = module.params[
+ "security_domain"
+ ]
+ request_post_data["action.notable.param.severity"] = module.params["severity"]
+ request_post_data["action.notable.param.asset_extraction"] = module.params[
+ "asset_extraction"
+ ]
+ request_post_data["action.notable.param.identity_extraction"] = module.params[
+ "identity_extraction"
+ ]
+
+ # NOTE: this field appears to be hard coded when you create this via the splunk web UI
+ # but I don't know what it is/means because there's no docs on it
+ request_post_data["action.notable.param.verbose"] = "0"
+
+ if module.params["default_owner"]:
+ request_post_data["action.notable.param.default_owner"] = module.params[
+ "default_owner"
+ ]
+
+ if module.params["default_status"]:
+ request_post_data["action.notable.param.default_status"] = module.params[
+ "default_status"
+ ]
+
+ if query_dict:
+ request_post_data["search"] = query_dict["entry"][0]["content"]["search"]
+ if "actions" in query_dict["entry"][0]["content"]:
+ if query_dict["entry"][0]["content"]["actions"] == "notable":
+ pass
+ elif (
+ len(query_dict["entry"][0]["content"]["actions"].split(",")) > 0
+ and "notable" not in query_dict["entry"][0]["content"]["actions"]
+ ):
+ request_post_data["actions"] = (
+ query_dict["entry"][0]["content"]["actions"] + ", notable"
+ )
+ else:
+ request_post_data["actions"] = "notable"
+ else:
+ module.fail_json(
+ msg="Unable to find correlation search: {0}", splunk_data=splunk_data
+ )
+
+ if module.params["state"] == "present":
+ needs_change = False
+ for arg in request_post_data:
+ if arg in query_dict["entry"][0]["content"]:
+ if to_text(query_dict["entry"][0]["content"][arg]) != to_text(
+ request_post_data[arg]
+ ):
+ needs_change = True
+ if not needs_change:
+ module.exit_json(
+ changed=False, msg="Nothing to do.", splunk_data=query_dict
+ )
+ if module.check_mode and needs_change:
+ module.exit_json(
+ changed=True,
+ msg="A change would have been made if not in check mode.",
+ splunk_data=query_dict,
+ )
+ if needs_change:
+ splunk_data = splunk_request.create_update(
+ "servicesNS/nobody/SplunkEnterpriseSecuritySuite/saved/searches/{0}".format(
+ quote_plus(module.params["correlation_search_name"])
+ ),
+ data=urlencode(request_post_data),
+ )
+ module.exit_json(
+ changed=True,
+ msg="{0} updated.".format(module.params["correlation_search_name"]),
+ splunk_data=splunk_data,
+ )
+
+ if module.params["state"] == "absent":
+ # FIXME - need to figure out how to clear the action.notable.param fields from the api endpoint
+ module.exit_json(
+ changed=True,
+ msg="Deleted {0}.".format(module.params["name"]),
+ splunk_data=splunk_data,
+ )
+ for arg in request_post_data:
+ if arg in query_dict["entry"][0]["content"]:
+ needs_change = True
+ del query_dict["entry"][0]["content"][arg]
+ if not needs_change:
+ module.exit_json(
+ changed=False, msg="Nothing to do.", splunk_data=query_dict
+ )
+ if module.check_mode and needs_change:
+ module.exit_json(
+ changed=True,
+ msg="A change would have been made if not in check mode.",
+ splunk_data=query_dict,
+ )
+ if needs_change:
+ splunk_data = splunk_request.create_update(
+ "servicesNS/nobody/SplunkEnterpriseSecuritySuite/saved/searches/{0}".format(
+ quote_plus(module.params["correlation_search_name"])
+ ),
+ data=urlencode(request_post_data),
+ )
+ module.exit_json(
+ changed=True,
+ msg="{0} updated.".format(module.params["correlation_search_name"]),
+ splunk_data=splunk_data,
+ )
+
+ module.exit_json(changed=False, msg="Nothing to do.", splunk_data=query_dict)
+
+
+if __name__ == "__main__":
+ main()
diff --git a/collections-debian-merged/ansible_collections/splunk/es/plugins/modules/correlation_search.py b/collections-debian-merged/ansible_collections/splunk/es/plugins/modules/correlation_search.py
new file mode 100644
index 00000000..1d45c3a3
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/splunk/es/plugins/modules/correlation_search.py
@@ -0,0 +1,351 @@
+#!/usr/bin/python
+# -*- coding: utf-8 -*-
+# https://github.com/ansible/ansible/issues/65816
+# https://github.com/PyCQA/pylint/issues/214
+
+# (c) 2018, Adam Miller (admiller@redhat.com)
+# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
+
+from __future__ import absolute_import, division, print_function
+
+__metaclass__ = type
+
+DOCUMENTATION = """
+---
+module: correlation_search
+short_description: Manage Splunk Enterprise Security Correlation Searches
+description:
+ - This module allows for creation, deletion, and modification of Splunk Enterprise Security Correlation Searches
+version_added: "1.0.0"
+options:
+ name:
+ description:
+ - Name of coorelation search
+ required: True
+ type: str
+ description:
+ description:
+ - Description of the coorelation search, this will populate the description field for the web console
+ required: True
+ type: str
+ state:
+ description:
+ - Add, remove, enable, or disiable a correlation search.
+ required: True
+ choices: [ "present", "absent", "enabled", "disabled" ]
+ type: str
+ search:
+ description:
+ - SPL search string
+ type: str
+ required: True
+ app:
+ description:
+ - Splunk app to associate the correlation seach with
+ type: str
+ required: False
+ default: "SplunkEnterpriseSecuritySuite"
+ ui_dispatch_context:
+ description:
+ - Set an app to use for links such as the drill-down search in a notable
+ event or links in an email adaptive response action. If None, uses the
+ Application Context.
+ type: str
+ required: False
+ time_earliest:
+ description:
+ - Earliest time using relative time modifiers.
+ type: str
+ required: False
+ default: "-24h"
+ time_latest:
+ description:
+ - Latest time using relative time modifiers.
+ type: str
+ required: False
+ default: "now"
+ cron_schedule:
+ description:
+ - Enter a cron-style schedule.
+ - For example C('*/5 * * * *') (every 5 minutes) or C('0 21 * * *') (every day at 9 PM).
+ - Real-time searches use a default schedule of C('*/5 * * * *').
+ type: str
+ required: False
+ default: "*/5 * * * *"
+ scheduling:
+ description:
+ - Controls the way the scheduler computes the next execution time of a scheduled search.
+ - >
+ Learn more:
+ https://docs.splunk.com/Documentation/Splunk/7.2.3/Report/Configurethepriorityofscheduledreports#Real-time_scheduling_and_continuous_scheduling
+ type: str
+ required: False
+ default: "real-time"
+ choices:
+ - "real-time"
+ - "continuous"
+ schedule_window:
+ description:
+ - Let report run at any time within a window that opens at its scheduled run time,
+ to improve efficiency when there are many concurrently scheduled reports.
+ The "auto" setting automatically determines the best window width for the report.
+ type: str
+ required: False
+ default: "0"
+ schedule_priority:
+ description:
+ - Raise the scheduling priority of a report. Set to "Higher" to prioritize
+ it above other searches of the same scheduling mode, or "Highest" to
+ prioritize it above other searches regardless of mode. Use with discretion.
+ type: str
+ required: False
+ default: "Default"
+ choices:
+ - "Default"
+ - "Higher"
+ - "Highest"
+ trigger_alert_when:
+ description:
+ - Raise the scheduling priority of a report. Set to "Higher" to prioritize
+ it above other searches of the same scheduling mode, or "Highest" to
+ prioritize it above other searches regardless of mode. Use with discretion.
+ type: str
+ required: False
+ default: "number of events"
+ choices:
+ - "number of events"
+ - "number of results"
+ - "number of hosts"
+ - "number of sources"
+ trigger_alert_when_condition:
+ description:
+ - Conditional to pass to C(trigger_alert_when)
+ type: str
+ required: False
+ default: "greater than"
+ choices:
+ - "greater than"
+ - "less than"
+ - "equal to"
+ - "not equal to"
+ - "drops by"
+ - "rises by"
+ trigger_alert_when_value:
+ description:
+ - Value to pass to C(trigger_alert_when)
+ type: str
+ required: False
+ default: "10"
+ throttle_window_duration:
+ description:
+ - "How much time to ignore other events that match the field values specified in Fields to group by."
+ type: str
+ required: False
+ throttle_fields_to_group_by:
+ description:
+ - "Type the fields to consider for matching events for throttling."
+ type: str
+ required: False
+ suppress_alerts:
+ description:
+ - "To suppress alerts from this correlation search or not"
+ type: bool
+ required: False
+ default: False
+notes:
+ - >
+ The following options are not yet supported:
+ throttle_window_duration, throttle_fields_to_group_by, and adaptive_response_actions
+
+author: Ansible Security Automation Team (@maxamillion) <https://github.com/ansible-security>
+"""
+# FIXME - adaptive response action association is probaby going to need to be a separate module we stitch together in a role
+
+EXAMPLES = """
+- name: Example of creating a correlation search with splunk.es.coorelation_search
+ splunk.es.correlation_search:
+ name: "Example Coorelation Search From Ansible"
+ description: "Example Coorelation Search From Ansible, description."
+ search: 'source="/var/log/snort.log"'
+ state: "present"
+"""
+
+from ansible.module_utils.basic import AnsibleModule
+from ansible.module_utils._text import to_text
+
+from ansible.module_utils.urls import Request
+from ansible.module_utils.six.moves.urllib.parse import urlencode, quote_plus
+from ansible.module_utils.six.moves.urllib.error import HTTPError
+from ansible_collections.splunk.es.plugins.module_utils.splunk import (
+ SplunkRequest,
+ parse_splunk_args,
+)
+
+import copy
+
+
+def main():
+
+ argspec = dict(
+ name=dict(required=True, type="str"),
+ description=dict(required=True, type="str"),
+ state=dict(choices=["present", "absent", "enabled", "disabled"], required=True),
+ search=dict(required=True, type="str"),
+ app=dict(type="str", required=False, default="SplunkEnterpriseSecuritySuite"),
+ ui_dispatch_context=dict(type="str", required=False),
+ time_earliest=dict(type="str", required=False, default="-24h"),
+ time_latest=dict(type="str", required=False, default="now"),
+ cron_schedule=dict(type="str", required=False, default="*/5 * * * *"),
+ scheduling=dict(
+ type="str",
+ required=False,
+ default="real-time",
+ choices=["real-time", "continuous"],
+ ),
+ schedule_window=dict(type="str", required=False, default="0"),
+ schedule_priority=dict(
+ type="str",
+ required=False,
+ default="Default",
+ choices=["Default", "Higher", "Highest"],
+ ),
+ trigger_alert_when=dict(
+ type="str",
+ required=False,
+ default="number of events",
+ choices=[
+ "number of events",
+ "number of results",
+ "number of hosts",
+ "number of sources",
+ ],
+ ),
+ trigger_alert_when_condition=dict(
+ type="str",
+ required=False,
+ default="greater than",
+ choices=[
+ "greater than",
+ "less than",
+ "equal to",
+ "not equal to",
+ "drops by",
+ "rises by",
+ ],
+ ),
+ trigger_alert_when_value=dict(type="str", required=False, default="10"),
+ throttle_window_duration=dict(type="str", required=False),
+ throttle_fields_to_group_by=dict(type="str", required=False),
+ suppress_alerts=dict(type="bool", required=False, default=False),
+ )
+
+ module = AnsibleModule(argument_spec=argspec, supports_check_mode=True)
+ if module.params["state"] in ["present", "enabled"]:
+ module_disabled_state = False
+ else:
+ module_disabled_state = True
+ splunk_request = SplunkRequest(
+ module,
+ headers={"Content-Type": "application/x-www-form-urlencoded"},
+ not_rest_data_keys=["state"],
+ )
+
+ try:
+ query_dict = splunk_request.get_by_path(
+ "servicesNS/nobody/SplunkEnterpriseSecuritySuite/saved/searches/{0}".format(
+ quote_plus(module.params["name"])
+ )
+ )
+ except HTTPError as e:
+ # the data monitor doesn't exist
+ query_dict = {}
+
+ # Have to custom craft the data here because they overload the saved searches
+ # endpoint in the rest api and we want to hide the nuance from the user
+ request_post_data = {}
+ request_post_data["name"] = module.params["name"]
+ request_post_data["action.correlationsearch.enabled"] = "1"
+ request_post_data["is_scheduled"] = True
+ request_post_data["dispatch.rt_backfill"] = True
+ request_post_data["action.correlationsearch.label"] = module.params["name"]
+ request_post_data["description"] = module.params["description"]
+ request_post_data["search"] = module.params["search"]
+ request_post_data["request.ui_dispatch_app"] = module.params["app"]
+ if module.params["ui_dispatch_context"]:
+ request_post_data["request.ui_dispatch_context"] = module.params[
+ "ui_dispatch_context"
+ ]
+ request_post_data["dispatch.earliest_time"] = module.params["time_earliest"]
+ request_post_data["dispatch.latest_time"] = module.params["time_latest"]
+ request_post_data["cron_schedule"] = module.params["cron_schedule"]
+ if module.params["scheduling"] == "real-time":
+ request_post_data["realtime_schedule"] = True
+ else:
+ request_post_data["realtime_schedule"] = False
+ request_post_data["schedule_window"] = module.params["schedule_window"]
+ request_post_data["schedule_priority"] = module.params["schedule_priority"].lower()
+ request_post_data["alert_type"] = module.params["trigger_alert_when"]
+ request_post_data["alert_comparator"] = module.params[
+ "trigger_alert_when_condition"
+ ]
+ request_post_data["alert_threshold"] = module.params["trigger_alert_when_value"]
+ request_post_data["alert.suppress"] = module.params["suppress_alerts"]
+ request_post_data["disabled"] = module_disabled_state
+
+ if module.params["state"] in ["present", "enabled", "disabled"]:
+ if query_dict:
+ needs_change = False
+ for arg in request_post_data:
+ if arg in query_dict["entry"][0]["content"]:
+ if to_text(query_dict["entry"][0]["content"][arg]) != to_text(
+ request_post_data[arg]
+ ):
+ needs_change = True
+ if not needs_change:
+ module.exit_json(
+ changed=False, msg="Nothing to do.", splunk_data=query_dict
+ )
+ if module.check_mode and needs_change:
+ module.exit_json(
+ changed=True,
+ msg="A change would have been made if not in check mode.",
+ splunk_data=query_dict,
+ )
+ if needs_change:
+ # FIXME - need to find a reasonable way to deal with action.correlationsearch.enabled
+ del request_post_data[
+ "name"
+ ] # If this is present, splunk assumes we're trying to create a new one wit the same name
+ splunk_data = splunk_request.create_update(
+ "servicesNS/nobody/SplunkEnterpriseSecuritySuite/saved/searches/{0}".format(
+ quote_plus(module.params["name"])
+ ),
+ data=urlencode(request_post_data),
+ )
+ module.exit_json(
+ changed=True, msg="{0} updated.", splunk_data=splunk_data
+ )
+ else:
+ # Create it
+ splunk_data = splunk_request.create_update(
+ "servicesNS/nobody/SplunkEnterpriseSecuritySuite/saved/searches",
+ data=urlencode(request_post_data),
+ )
+ module.exit_json(changed=True, msg="{0} created.", splunk_data=splunk_data)
+
+ elif module.params["state"] == "absent":
+ if query_dict:
+ splunk_data = splunk_request.delete_by_path(
+ "services/saved/searches/{0}".format(quote_plus(module.params["name"]))
+ )
+ module.exit_json(
+ changed=True,
+ msg="Deleted {0}.".format(module.params["name"]),
+ splunk_data=splunk_data,
+ )
+
+ module.exit_json(changed=False, msg="Nothing to do.", splunk_data=query_dict)
+
+
+if __name__ == "__main__":
+ main()
diff --git a/collections-debian-merged/ansible_collections/splunk/es/plugins/modules/correlation_search_info.py b/collections-debian-merged/ansible_collections/splunk/es/plugins/modules/correlation_search_info.py
new file mode 100644
index 00000000..b6aed3c0
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/splunk/es/plugins/modules/correlation_search_info.py
@@ -0,0 +1,78 @@
+#!/usr/bin/python
+# -*- coding: utf-8 -*-
+# https://github.com/ansible/ansible/issues/65816
+# https://github.com/PyCQA/pylint/issues/214
+
+# (c) 2018, Adam Miller (admiller@redhat.com)
+# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
+
+from __future__ import absolute_import, division, print_function
+
+__metaclass__ = type
+
+DOCUMENTATION = """
+---
+module: correlation_search_info
+short_description: Manage Splunk Enterprise Security Correlation Searches
+description:
+ - This module allows for the query of Splunk Enterprise Security Correlation Searches
+version_added: "1.0.0"
+options:
+ name:
+ description:
+ - Name of coorelation search
+ required: false
+ type: str
+
+author: Ansible Security Automation Team (@maxamillion) <https://github.com/ansible-security>
+"""
+# FIXME - adaptive response action association is probaby going to need to be a separate module we stitch together in a role
+
+EXAMPLES = """
+- name: Example usage of splunk.es.correlation_search_info
+ splunk.es.correlation_search_info:
+ name: "Name of correlation search"
+ register: scorrelation_search_info
+
+- name: debug display information gathered
+ debug:
+ var: scorrelation_search_info
+"""
+
+from ansible.module_utils.basic import AnsibleModule
+from ansible.module_utils._text import to_text
+
+from ansible.module_utils.urls import Request
+from ansible.module_utils.six.moves.urllib.parse import urlencode, quote_plus
+from ansible.module_utils.six.moves.urllib.error import HTTPError
+from ansible_collections.splunk.es.plugins.module_utils.splunk import SplunkRequest
+
+
+def main():
+
+ argspec = dict(name=dict(required=False, type="str"))
+
+ module = AnsibleModule(argument_spec=argspec, supports_check_mode=True)
+
+ splunk_request = SplunkRequest(module, headers={"Content-Type": "application/json"})
+
+ if module.params["name"]:
+ try:
+ query_dict = splunk_request.get_by_path(
+ "servicesNS/nobody/SplunkEnterpriseSecuritySuite/saved/searches/{0}".format(
+ quote_plus(module.params["name"])
+ )
+ )
+ except HTTPError as e:
+ # the data monitor doesn't exist
+ query_dict = {}
+ else:
+ query_dict = splunk_request.get_by_path(
+ "servicesNS/nobody/SplunkEnterpriseSecuritySuite/saved/searches"
+ )
+
+ module.exit_json(changed=False, splunk_correlation_search_info=query_dict)
+
+
+if __name__ == "__main__":
+ main()
diff --git a/collections-debian-merged/ansible_collections/splunk/es/plugins/modules/data_input_monitor.py b/collections-debian-merged/ansible_collections/splunk/es/plugins/modules/data_input_monitor.py
new file mode 100644
index 00000000..abe1bd2e
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/splunk/es/plugins/modules/data_input_monitor.py
@@ -0,0 +1,258 @@
+#!/usr/bin/python
+# -*- coding: utf-8 -*-
+# https://github.com/ansible/ansible/issues/65816
+# https://github.com/PyCQA/pylint/issues/214
+
+# (c) 2018, Adam Miller (admiller@redhat.com)
+# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
+
+from __future__ import absolute_import, division, print_function
+
+__metaclass__ = type
+
+DOCUMENTATION = """
+---
+module: data_input_monitor
+short_description: Manage Splunk Data Inputs of type Monitor
+description:
+ - This module allows for addition or deletion of File and Directory Monitor Data Inputs in Splunk.
+version_added: "1.0.0"
+options:
+ name:
+ description:
+ - The file or directory path to monitor on the system.
+ required: True
+ type: str
+ state:
+ description:
+ - Add or remove a data source.
+ required: True
+ choices:
+ - "present"
+ - "absent"
+ type: str
+ blacklist:
+ description:
+ - Specify a regular expression for a file path. The file path that matches this regular expression is not indexed.
+ required: False
+ type: str
+ check_index:
+ description:
+ - If set to C(True), the index value is checked to ensure that it is the name of a valid index.
+ required: False
+ type: bool
+ default: False
+ check_path:
+ description:
+ - If set to C(True), the name value is checked to ensure that it exists.
+ required: False
+ type: bool
+ crc_salt:
+ description:
+ - A string that modifies the file tracking identity for files in this input.
+ The magic value <SOURCE> invokes special behavior (see admin documentation).
+ required: False
+ type: str
+ disabled:
+ description:
+ - Indicates if input monitoring is disabled.
+ required: False
+ default: False
+ type: bool
+ followTail:
+ description:
+ - If set to C(True), files that are seen for the first time is read from the end.
+ required: False
+ type: bool
+ default: False
+ host:
+ description:
+ - The value to populate in the host field for events from this data input.
+ required: False
+ type: str
+ host_regex:
+ description:
+ - Specify a regular expression for a file path. If the path for a file
+ matches this regular expression, the captured value is used to populate
+ the host field for events from this data input. The regular expression
+ must have one capture group.
+ required: False
+ type: str
+ host_segment:
+ description:
+ - Use the specified slash-separate segment of the filepath as the host field value.
+ required: False
+ type: int
+ ignore_older_than:
+ description:
+ - Specify a time value. If the modification time of a file being monitored
+ falls outside of this rolling time window, the file is no longer being monitored.
+ required: False
+ type: str
+ index:
+ description:
+ - Which index events from this input should be stored in. Defaults to default.
+ required: False
+ type: str
+ recursive:
+ description:
+ - Setting this to False prevents monitoring of any subdirectories encountered within this data input.
+ required: False
+ type: bool
+ default: False
+ rename_source:
+ description:
+ - The value to populate in the source field for events from this data input.
+ The same source should not be used for multiple data inputs.
+ required: False
+ type: str
+ sourcetype:
+ description:
+ - The value to populate in the sourcetype field for incoming events.
+ required: False
+ type: str
+ time_before_close:
+ description:
+ - When Splunk software reaches the end of a file that is being read, the
+ file is kept open for a minimum of the number of seconds specified in
+ this value. After this period has elapsed, the file is checked again for
+ more data.
+ required: False
+ type: int
+ whitelist:
+ description:
+ - Specify a regular expression for a file path. Only file paths that match this regular expression are indexed.
+ required: False
+ type: str
+
+author: Ansible Security Automation Team (@maxamillion) <https://github.com/ansible-security>
+"""
+
+EXAMPLES = """
+- name: Example adding data input monitor with splunk.es.data_input_monitor
+ splunk.es.data_input_monitor:
+ name: "/var/log/example.log"
+ state: "present"
+ recursive: True
+"""
+
+from ansible.module_utils.basic import AnsibleModule
+from ansible.module_utils._text import to_text
+
+from ansible.module_utils.urls import Request
+from ansible.module_utils.six.moves.urllib.parse import urlencode, quote_plus
+from ansible.module_utils.six.moves.urllib.error import HTTPError
+from ansible_collections.splunk.es.plugins.module_utils.splunk import (
+ SplunkRequest,
+ parse_splunk_args,
+)
+
+import copy
+
+
+def main():
+
+ argspec = dict(
+ name=dict(required=True, type="str"),
+ state=dict(choices=["present", "absent"], required=True),
+ blacklist=dict(required=False, type="str", default=None),
+ check_index=dict(required=False, type="bool", default=False),
+ check_path=dict(required=False, type="bool", default=None),
+ crc_salt=dict(required=False, type="str", default=None),
+ disabled=dict(required=False, type="bool", default=False),
+ followTail=dict(required=False, type="bool", default=False),
+ host=dict(required=False, type="str", default=None),
+ host_segment=dict(required=False, type="int", default=None),
+ host_regex=dict(required=False, type="str", default=None),
+ ignore_older_than=dict(required=False, type="str", default=None),
+ index=dict(required=False, type="str", default=None),
+ recursive=dict(required=False, type="bool", default=False),
+ rename_source=dict(required=False, type="str", default=None),
+ sourcetype=dict(required=False, type="str", default=None),
+ time_before_close=dict(required=False, type="int", default=None),
+ whitelist=dict(required=False, type="str", default=None),
+ )
+
+ module = AnsibleModule(argument_spec=argspec, supports_check_mode=True)
+
+ # map of keys for the splunk REST API that aren't pythonic so we have to
+ # handle the substitutes
+ keymap = {
+ "check_index": "check-index",
+ "check_path": "check-path",
+ "crc_salt": "crc-salt",
+ "ignore_older_than": "ignore-older-than",
+ "rename_source": "rename-source",
+ "time_before_close": "time-before-close",
+ }
+
+ splunk_request = SplunkRequest(
+ module,
+ headers={"Content-Type": "application/x-www-form-urlencoded"},
+ keymap=keymap,
+ not_rest_data_keys=["state"],
+ )
+ # This is where the splunk_* args are processed
+ request_data = splunk_request.get_data()
+
+ query_dict = splunk_request.get_by_path(
+ "servicesNS/nobody/search/data/inputs/monitor/{0}".format(
+ quote_plus(module.params["name"])
+ )
+ )
+
+ if module.params["state"] == "present":
+ if query_dict:
+ needs_change = False
+ for arg in request_data:
+ if arg in query_dict["entry"][0]["content"]:
+ if to_text(query_dict["entry"][0]["content"][arg]) != to_text(
+ request_data[arg]
+ ):
+ needs_change = True
+ if not needs_change:
+ module.exit_json(
+ changed=False, msg="Nothing to do.", splunk_data=query_dict
+ )
+ if module.check_mode and needs_change:
+ module.exit_json(
+ changed=True,
+ msg="A change would have been made if not in check mode.",
+ splunk_data=query_dict,
+ )
+ if needs_change:
+ splunk_data = splunk_request.create_update(
+ "servicesNS/nobody/search/data/inputs/monitor/{0}".format(
+ quote_plus(module.params["name"])
+ )
+ )
+ module.exit_json(
+ changed=True, msg="{0} updated.", splunk_data=splunk_data
+ )
+ else:
+ # Create it
+ _data = splunk_request.get_data()
+ _data["name"] = module.params["name"]
+ splunk_data = splunk_request.create_update(
+ "servicesNS/nobody/search/data/inputs/monitor", data=urlencode(_data)
+ )
+ module.exit_json(changed=True, msg="{0} created.", splunk_data=splunk_data)
+
+ if module.params["state"] == "absent":
+ if query_dict:
+ splunk_data = splunk_request.delete_by_path(
+ "servicesNS/nobody/search/data/inputs/monitor/{0}".format(
+ quote_plus(module.params["name"])
+ )
+ )
+ module.exit_json(
+ changed=True,
+ msg="Deleted {0}.".format(module.params["name"]),
+ splunk_data=splunk_data,
+ )
+
+ module.exit_json(changed=False, msg="Nothing to do.", splunk_data=query_dict)
+
+
+if __name__ == "__main__":
+ main()
diff --git a/collections-debian-merged/ansible_collections/splunk/es/plugins/modules/data_input_network.py b/collections-debian-merged/ansible_collections/splunk/es/plugins/modules/data_input_network.py
new file mode 100644
index 00000000..fba8feba
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/splunk/es/plugins/modules/data_input_network.py
@@ -0,0 +1,272 @@
+#!/usr/bin/python
+# -*- coding: utf-8 -*-
+# https://github.com/ansible/ansible/issues/65816
+# https://github.com/PyCQA/pylint/issues/214
+
+# (c) 2018, Adam Miller (admiller@redhat.com)
+# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
+
+from __future__ import absolute_import, division, print_function
+
+__metaclass__ = type
+
+DOCUMENTATION = """
+---
+module: data_input_network
+short_description: Manage Splunk Data Inputs of type TCP or UDP
+description:
+ - This module allows for addition or deletion of TCP and UDP Data Inputs in Splunk.
+version_added: "1.0.0"
+options:
+ protocol:
+ description:
+ - Choose between tcp or udp
+ required: True
+ choices:
+ - 'tcp'
+ - 'udp'
+ type: str
+ connection_host:
+ description:
+ - Set the host for the remote server that is sending data.
+ - C(ip) sets the host to the IP address of the remote server sending data.
+ - C(dns) sets the host to the reverse DNS entry for the IP address of the remote server sending data.
+ - C(none) leaves the host as specified in inputs.conf, which is typically the Splunk system hostname.
+ default: "ip"
+ required: False
+ type: str
+ choices:
+ - "ip"
+ - "dns"
+ - "none"
+ state:
+ description:
+ - Enable, disable, create, or destroy
+ choices:
+ - "present"
+ - "absent"
+ - "enabled"
+ - "disable"
+ required: False
+ default: "present"
+ type: str
+ datatype:
+ description: >
+ Forwarders can transmit three types of data: raw, unparsed, or parsed.
+ C(cooked) data refers to parsed and unparsed formats.
+ choices:
+ - "cooked"
+ - "raw"
+ default: "raw"
+ required: False
+ type: str
+ host:
+ description:
+ - Host from which the indexer gets data.
+ required: False
+ type: str
+ index:
+ description:
+ - default Index to store generated events.
+ type: str
+ name:
+ description:
+ - The input port which receives raw data.
+ required: True
+ type: str
+ queue:
+ description:
+ - Specifies where the input processor should deposit the events it reads. Defaults to parsingQueue.
+ - Set queue to parsingQueue to apply props.conf and other parsing rules to your data. For more
+ information about props.conf and rules for timestamping and linebreaking, refer to props.conf and
+ the online documentation at "Monitor files and directories with inputs.conf"
+ - Set queue to indexQueue to send your data directly into the index.
+ choices:
+ - "parsingQueue"
+ - "indexQueue"
+ type: str
+ required: False
+ default: "parsingQueue"
+ rawTcpDoneTimeout:
+ description:
+ - Specifies in seconds the timeout value for adding a Done-key.
+ - If a connection over the port specified by name remains idle after receiving data for specified
+ number of seconds, it adds a Done-key. This implies the last event is completely received.
+ default: 10
+ type: int
+ required: False
+ restrictToHost:
+ description:
+ - Allows for restricting this input to only accept data from the host specified here.
+ required: False
+ type: str
+ ssl:
+ description:
+ - Enable or disble ssl for the data stream
+ required: False
+ type: bool
+ source:
+ description:
+ - Sets the source key/field for events from this input. Defaults to the input file path.
+ - >
+ Sets the source key initial value. The key is used during parsing/indexing, in particular to set
+ the source field during indexing. It is also the source field used at search time. As a convenience,
+ the chosen string is prepended with 'source::'.
+ - >
+ Note: Overriding the source key is generally not recommended. Typically, the input layer provides a
+ more accurate string to aid in problem analysis and investigation, accurately recording the file from
+ which the data was retrieved. Consider use of source types, tagging, and search wildcards before
+ overriding this value.
+ type: str
+ sourcetype:
+ description:
+ - Set the source type for events from this input.
+ - '"sourcetype=" is automatically prepended to <string>.'
+ - Defaults to audittrail (if signedaudit=True) or fschange (if signedaudit=False).
+ type: str
+
+author: Ansible Security Automation Team (@maxamillion) <https://github.com/ansible-security>
+"""
+
+EXAMPLES = """
+- name: Example adding data input network with splunk.es.data_input_network
+ splunk.es.data_input_network:
+ name: "8099"
+ protocol: "tcp"
+ state: "present"
+"""
+
+
+from ansible.module_utils.basic import AnsibleModule
+from ansible.module_utils._text import to_text
+
+from ansible.module_utils.urls import Request
+from ansible.module_utils.six.moves.urllib.parse import urlencode, quote_plus
+from ansible.module_utils.six.moves.urllib.error import HTTPError
+from ansible_collections.splunk.es.plugins.module_utils.splunk import (
+ SplunkRequest,
+ parse_splunk_args,
+)
+
+import copy
+
+
+def main():
+
+ argspec = dict(
+ state=dict(
+ required=False,
+ choices=["present", "absent", "enabled", "disable"],
+ default="present",
+ type="str",
+ ),
+ connection_host=dict(
+ required=False, choices=["ip", "dns", "none"], default="ip", type="str"
+ ),
+ host=dict(required=False, type="str", default=None),
+ index=dict(required=False, type="str", default=None),
+ name=dict(required=True, type="str"),
+ protocol=dict(required=True, type="str", choices=["tcp", "udp"]),
+ queue=dict(
+ required=False,
+ type="str",
+ choices=["parsingQueue", "indexQueue"],
+ default="parsingQueue",
+ ),
+ rawTcpDoneTimeout=dict(required=False, type="int", default=10),
+ restrictToHost=dict(required=False, type="str", default=None),
+ ssl=dict(required=False, type="bool", default=None),
+ source=dict(required=False, type="str", default=None),
+ sourcetype=dict(required=False, type="str", default=None),
+ datatype=dict(required=False, choices=["cooked", "raw"], default="raw"),
+ )
+
+ module = AnsibleModule(argument_spec=argspec, supports_check_mode=True)
+
+ splunk_request = SplunkRequest(
+ module,
+ headers={"Content-Type": "application/x-www-form-urlencoded"},
+ not_rest_data_keys=["state", "datatype", "protocol"],
+ )
+ # This is where the splunk_* args are processed
+ request_data = splunk_request.get_data()
+
+ query_dict = splunk_request.get_by_path(
+ "servicesNS/nobody/search/data/inputs/{0}/{1}/{2}".format(
+ quote_plus(module.params["protocol"]),
+ quote_plus(module.params["datatype"]),
+ quote_plus(module.params["name"]),
+ )
+ )
+
+ if module.params["state"] in ["present", "enabled", "disabled"]:
+ _data = splunk_request.get_data()
+ if module.params["state"] in ["present", "enabled"]:
+ _data["disabled"] = False
+ else:
+ _data["disabled"] = True
+ if query_dict:
+ needs_change = False
+ for arg in request_data:
+ if arg in query_dict["entry"][0]["content"]:
+ if to_text(query_dict["entry"][0]["content"][arg]) != to_text(
+ request_data[arg]
+ ):
+ needs_change = True
+ if not needs_change:
+ module.exit_json(
+ changed=False, msg="Nothing to do.", splunk_data=query_dict
+ )
+ if module.check_mode and needs_change:
+ module.exit_json(
+ changed=True,
+ msg="A change would have been made if not in check mode.",
+ splunk_data=query_dict,
+ )
+ if needs_change:
+ splunk_data = splunk_request.create_update(
+ "servicesNS/nobody/search/data/inputs/{0}/{1}/{2}".format(
+ quote_plus(module.params["protocol"]),
+ quote_plus(module.params["datatype"]),
+ quote_plus(module.params["name"]),
+ data=urlencode(_data),
+ )
+ )
+ if module.params["state"] in ["present", "enabled"]:
+ module.exit_json(
+ changed=True, msg="{0} updated.", splunk_data=splunk_data
+ )
+ else:
+ module.exit_json(
+ changed=True, msg="{0} disabled.", splunk_data=splunk_data
+ )
+ else:
+ # Create it
+ splunk_data = splunk_request.create_update(
+ "servicesNS/nobody/search/data/inputs/{0}/{1}".format(
+ quote_plus(module.params["protocol"]),
+ quote_plus(module.params["datatype"]),
+ ),
+ data=urlencode(_data),
+ )
+ module.exit_json(changed=True, msg="{0} created.", splunk_data=splunk_data)
+ elif module.params["state"] == "absent":
+ if query_dict:
+ splunk_data = splunk_request.delete_by_path(
+ "servicesNS/nobody/search/data/inputs/{0}/{1}/{2}".format(
+ quote_plus(module.params["protocol"]),
+ quote_plus(module.params["datatype"]),
+ quote_plus(module.params["name"]),
+ )
+ )
+ module.exit_json(
+ changed=True,
+ msg="Deleted {0}.".format(module.params["name"]),
+ splunk_data=splunk_data,
+ )
+
+ module.exit_json(changed=False, msg="Nothing to do.", splunk_data={})
+
+
+if __name__ == "__main__":
+ main()
diff --git a/collections-debian-merged/ansible_collections/splunk/es/plugins/modules/splunk_adaptive_response_notable_event.py b/collections-debian-merged/ansible_collections/splunk/es/plugins/modules/splunk_adaptive_response_notable_event.py
new file mode 100644
index 00000000..631857a7
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/splunk/es/plugins/modules/splunk_adaptive_response_notable_event.py
@@ -0,0 +1,417 @@
+#!/usr/bin/python
+# -*- coding: utf-8 -*-
+# https://github.com/ansible/ansible/issues/65816
+# https://github.com/PyCQA/pylint/issues/214
+
+# (c) 2018, Adam Miller (admiller@redhat.com)
+# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
+
+from __future__ import absolute_import, division, print_function
+
+__metaclass__ = type
+
+DOCUMENTATION = """
+---
+module: adaptive_response_notable_event
+short_description: Manage Splunk Enterprise Security Notable Event Adaptive Responses
+description:
+ - This module allows for creation, deletion, and modification of Splunk
+ Enterprise Security Notable Event Adaptive Responses that are associated
+ with a correlation search
+version_added: "1.0.0"
+options:
+ name:
+ description:
+ - Name of notable event
+ required: true
+ type: str
+ correlation_search_name:
+ description:
+ - Name of correlation search to associate this notable event adaptive response with
+ required: true
+ type: str
+ description:
+ description:
+ - Description of the notable event, this will populate the description field for the web console
+ required: true
+ type: str
+ state:
+ description:
+ - Add or remove a data source.
+ required: true
+ choices: [ "present", "absent" ]
+ type: str
+ security_domain:
+ description:
+ - Splunk Security Domain
+ type: str
+ required: False
+ choices:
+ - "access"
+ - "endpoint"
+ - "network"
+ - "threat"
+ - "identity"
+ - "audit"
+ default: "threat"
+ severity:
+ description:
+ - Severity rating
+ type: str
+ required: False
+ choices:
+ - "informational"
+ - "low"
+ - "medium"
+ - "high"
+ - "critical"
+ - "unknown"
+ default: "high"
+ default_owner:
+ description:
+ - Default owner of the notable event, if unset it will default to Splunk System Defaults
+ type: str
+ required: False
+ default_status:
+ description:
+ - Default status of the notable event, if unset it will default to Splunk System Defaults
+ type: str
+ required: False
+ choices:
+ - "unassigned"
+ - "new"
+ - "in progress"
+ - "pending"
+ - "resolved"
+ - "closed"
+ drill_down_name:
+ description:
+ - Name for drill down search, Supports variable substitution with fields from the matching event.
+ type: str
+ required: False
+ drill_down_search:
+ description:
+ - Drill down search, Supports variable substitution with fields from the matching event.
+ type: str
+ required: False
+ drill_down_earliest_offset:
+ description:
+ - Set the amount of time before the triggering event to search for related
+ events. For example, 2h. Use \"$info_min_time$\" to set the drill-down time
+ to match the earliest time of the search
+ type: str
+ required: False
+ default: \"$info_min_time$\"
+ drill_down_latest_offset:
+ description:
+ - Set the amount of time after the triggering event to search for related
+ events. For example, 1m. Use \"$info_max_time$\" to set the drill-down
+ time to match the latest time of the search
+ type: str
+ required: False
+ default: \"$info_max_time$\"
+ investigation_profiles:
+ description:
+ - Investigation profile to assiciate the notable event with.
+ type: str
+ required: False
+ next_steps:
+ description:
+ - List of adaptive responses that should be run next
+ - Describe next steps and response actions that an analyst could take to address this threat.
+ type: list
+ required: False
+ recommended_actions:
+ description:
+ - List of adaptive responses that are recommended to be run next
+ - Identifying Recommended Adaptive Responses will highlight those actions
+ for the analyst when looking at the list of response actions available,
+ making it easier to find them among the longer list of available actions.
+ type: list
+ required: False
+ asset_extraction:
+ description:
+ - list of assets to extract, select any one or many of the available choices
+ - defaults to all available choices
+ type: list
+ choices:
+ - src
+ - dest
+ - dvc
+ - orig_host
+ default:
+ - src
+ - dest
+ - dvc
+ - orig_host
+ required: False
+ identity_extraction:
+ description:
+ - list of identity fields to extract, select any one or many of the available choices
+ - defaults to all available choices
+ type: list
+ choices:
+ - user
+ - src_user
+ default:
+ - user
+ - src_user
+ required: False
+
+author: Ansible Security Automation Team (@maxamillion) <https://github.com/ansible-security>
+"""
+# FIXME - adaptive response action association is probaby going to need to be a separate module we stitch together in a role
+
+EXAMPLES = """
+- name: Example of using splunk.es.adaptive_response_notable_event module
+ splunk.es.adaptive_response_notable_event:
+ name: "Example notable event from Ansible"
+ correlation_search_name: "Example Correlation Search From Ansible"
+ description: "Example notable event from Ansible, description."
+ state: "present"
+ next_steps:
+ - ping
+ - nslookup
+ recommended_actions:
+ - script
+ - ansiblesecurityautomation
+"""
+
+from ansible.module_utils.basic import AnsibleModule
+from ansible.module_utils._text import to_text
+
+from ansible.module_utils.urls import Request
+from ansible.module_utils.six.moves.urllib.parse import urlencode, quote_plus
+from ansible.module_utils.six.moves.urllib.error import HTTPError
+from ansible_collections.splunk.es.plugins.module_utils.splunk import (
+ SplunkRequest,
+ parse_splunk_args,
+)
+
+import copy
+import json
+
+
+def main():
+
+ argspec = dict(
+ name=dict(required=True, type="str"),
+ correlation_search_name=dict(required=True, type="str"),
+ description=dict(required=True, type="str"),
+ state=dict(choices=["present", "absent"], required=True),
+ security_domain=dict(
+ choices=["access", "endpoint", "network", "threat", "identity", "audit"],
+ required=False,
+ default="threat",
+ ),
+ severity=dict(
+ choices=["informational", "low", "medium", "high", "critical", "unknown"],
+ required=False,
+ default="high",
+ ),
+ default_owner=dict(required=False, type="str"),
+ default_status=dict(
+ choices=[
+ "unassigned",
+ "new",
+ "in progress",
+ "pending",
+ "resolved",
+ "closed",
+ ],
+ required=False,
+ default="",
+ ),
+ drill_down_name=dict(required=False, type="str"),
+ drill_down_search=dict(required=False, type="str"),
+ drill_down_earliest_offset=dict(
+ required=False, type="str", default="$info_min_time$"
+ ),
+ drill_down_latest_offset=dict(
+ required=False, type="str", default="$info_max_time$"
+ ),
+ investigation_profiles=dict(required=False, type="str"),
+ next_steps=dict(required=False, type="list", default=[]),
+ recommended_actions=dict(required=False, type="list", default=[]),
+ asset_extraction=dict(
+ required=False,
+ type="list",
+ default=["src", "dest", "dvc", "orig_host"],
+ choices=["src", "dest", "dvc", "orig_host"],
+ ),
+ identity_extraction=dict(
+ required=False,
+ type="list",
+ default=["user", "src_user"],
+ choices=["user", "src_user"],
+ ),
+ )
+
+ module = AnsibleModule(argument_spec=argspec, supports_check_mode=True)
+
+ splunk_request = SplunkRequest(
+ module,
+ headers={"Content-Type": "application/x-www-form-urlencoded"},
+ not_rest_data_keys=["state"],
+ )
+
+ query_dict = splunk_request.get_by_path(
+ "servicesNS/nobody/SplunkEnterpriseSecuritySuite/saved/searches/{0}".format(
+ quote_plus(module.params["correlation_search_name"])
+ )
+ )
+
+ # Have to custom craft the data here because they overload the saved searches
+ # endpoint in the rest api and we want to hide the nuance from the user
+ request_post_data = {}
+
+ # FIXME need to figure out how to properly support these, the possible values appear to
+ # be dynamically created based on what the search is indexing
+ # request_post_data['action.notable.param.extract_assets'] = '[\"src\",\"dest\",\"dvc\",\"orig_host\"]'
+ # request_post_data['action.notable.param.extract_identities'] = [\"src_user\",\"user\"]
+ if module.params["next_steps"]:
+ if len(module.params["next_steps"]) == 1:
+ next_steps = "[[action|{0}]]".format(module.params["next_steps"][0])
+ else:
+ next_steps = ""
+ for next_step in module.params["next_steps"]:
+ if next_steps:
+ next_steps += "\n[[action|{0}]]".format(next_step)
+ else:
+ next_steps = "[[action|{0}]]".format(next_step)
+
+ # NOTE: version:1 appears to be hard coded when you create this via the splunk web UI
+ # but I don't know what it is/means because there's no docs on it
+ next_steps_dict = {"version": 1, "data": next_steps}
+ request_post_data["action.notable.param.next_steps"] = json.dumps(
+ next_steps_dict
+ )
+
+ if module.params["recommended_actions"]:
+ if len(module.params["recommended_actions"]) == 1:
+ request_post_data[
+ "action.notable.param.recommended_actions"
+ ] = module.params["recommended_actions"][0]
+ else:
+ request_post_data["action.notable.param.recommended_actions"] = ",".join(
+ module.params["recommended_actions"]
+ )
+
+ request_post_data["action.notable.param.rule_description"] = module.params[
+ "description"
+ ]
+ request_post_data["action.notable.param.rule_title"] = module.params["name"]
+ request_post_data["action.notable.param.security_domain"] = module.params[
+ "security_domain"
+ ]
+ request_post_data["action.notable.param.severity"] = module.params["severity"]
+ request_post_data["action.notable.param.asset_extraction"] = module.params[
+ "asset_extraction"
+ ]
+ request_post_data["action.notable.param.identity_extraction"] = module.params[
+ "identity_extraction"
+ ]
+
+ # NOTE: this field appears to be hard coded when you create this via the splunk web UI
+ # but I don't know what it is/means because there's no docs on it
+ request_post_data["action.notable.param.verbose"] = "0"
+
+ if module.params["default_owner"]:
+ request_post_data["action.notable.param.default_owner"] = module.params[
+ "default_owner"
+ ]
+
+ if module.params["default_status"]:
+ request_post_data["action.notable.param.default_status"] = module.params[
+ "default_status"
+ ]
+
+ if query_dict:
+ request_post_data["search"] = query_dict["entry"][0]["content"]["search"]
+ if "actions" in query_dict["entry"][0]["content"]:
+ if query_dict["entry"][0]["content"]["actions"] == "notable":
+ pass
+ elif (
+ len(query_dict["entry"][0]["content"]["actions"].split(",")) > 0
+ and "notable" not in query_dict["entry"][0]["content"]["actions"]
+ ):
+ request_post_data["actions"] = (
+ query_dict["entry"][0]["content"]["actions"] + ", notable"
+ )
+ else:
+ request_post_data["actions"] = "notable"
+ else:
+ module.fail_json(
+ msg="Unable to find correlation search: {0}", splunk_data=splunk_data
+ )
+
+ if module.params["state"] == "present":
+ needs_change = False
+ for arg in request_post_data:
+ if arg in query_dict["entry"][0]["content"]:
+ if to_text(query_dict["entry"][0]["content"][arg]) != to_text(
+ request_post_data[arg]
+ ):
+ needs_change = True
+ if not needs_change:
+ module.exit_json(
+ changed=False, msg="Nothing to do.", splunk_data=query_dict
+ )
+ if module.check_mode and needs_change:
+ module.exit_json(
+ changed=True,
+ msg="A change would have been made if not in check mode.",
+ splunk_data=query_dict,
+ )
+ if needs_change:
+ splunk_data = splunk_request.create_update(
+ "servicesNS/nobody/SplunkEnterpriseSecuritySuite/saved/searches/{0}".format(
+ quote_plus(module.params["correlation_search_name"])
+ ),
+ data=urlencode(request_post_data),
+ )
+ module.exit_json(
+ changed=True,
+ msg="{0} updated.".format(module.params["correlation_search_name"]),
+ splunk_data=splunk_data,
+ )
+
+ if module.params["state"] == "absent":
+ # FIXME - need to figure out how to clear the action.notable.param fields from the api endpoint
+ module.exit_json(
+ changed=True,
+ msg="Deleted {0}.".format(module.params["name"]),
+ splunk_data=splunk_data,
+ )
+ for arg in request_post_data:
+ if arg in query_dict["entry"][0]["content"]:
+ needs_change = True
+ del query_dict["entry"][0]["content"][arg]
+ if not needs_change:
+ module.exit_json(
+ changed=False, msg="Nothing to do.", splunk_data=query_dict
+ )
+ if module.check_mode and needs_change:
+ module.exit_json(
+ changed=True,
+ msg="A change would have been made if not in check mode.",
+ splunk_data=query_dict,
+ )
+ if needs_change:
+ splunk_data = splunk_request.create_update(
+ "servicesNS/nobody/SplunkEnterpriseSecuritySuite/saved/searches/{0}".format(
+ quote_plus(module.params["correlation_search_name"])
+ ),
+ data=urlencode(request_post_data),
+ )
+ module.exit_json(
+ changed=True,
+ msg="{0} updated.".format(module.params["correlation_search_name"]),
+ splunk_data=splunk_data,
+ )
+
+ module.exit_json(changed=False, msg="Nothing to do.", splunk_data=query_dict)
+
+
+if __name__ == "__main__":
+ main()
diff --git a/collections-debian-merged/ansible_collections/splunk/es/plugins/modules/splunk_correlation_search.py b/collections-debian-merged/ansible_collections/splunk/es/plugins/modules/splunk_correlation_search.py
new file mode 100644
index 00000000..1d45c3a3
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/splunk/es/plugins/modules/splunk_correlation_search.py
@@ -0,0 +1,351 @@
+#!/usr/bin/python
+# -*- coding: utf-8 -*-
+# https://github.com/ansible/ansible/issues/65816
+# https://github.com/PyCQA/pylint/issues/214
+
+# (c) 2018, Adam Miller (admiller@redhat.com)
+# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
+
+from __future__ import absolute_import, division, print_function
+
+__metaclass__ = type
+
+DOCUMENTATION = """
+---
+module: correlation_search
+short_description: Manage Splunk Enterprise Security Correlation Searches
+description:
+ - This module allows for creation, deletion, and modification of Splunk Enterprise Security Correlation Searches
+version_added: "1.0.0"
+options:
+ name:
+ description:
+ - Name of coorelation search
+ required: True
+ type: str
+ description:
+ description:
+ - Description of the coorelation search, this will populate the description field for the web console
+ required: True
+ type: str
+ state:
+ description:
+ - Add, remove, enable, or disiable a correlation search.
+ required: True
+ choices: [ "present", "absent", "enabled", "disabled" ]
+ type: str
+ search:
+ description:
+ - SPL search string
+ type: str
+ required: True
+ app:
+ description:
+ - Splunk app to associate the correlation seach with
+ type: str
+ required: False
+ default: "SplunkEnterpriseSecuritySuite"
+ ui_dispatch_context:
+ description:
+ - Set an app to use for links such as the drill-down search in a notable
+ event or links in an email adaptive response action. If None, uses the
+ Application Context.
+ type: str
+ required: False
+ time_earliest:
+ description:
+ - Earliest time using relative time modifiers.
+ type: str
+ required: False
+ default: "-24h"
+ time_latest:
+ description:
+ - Latest time using relative time modifiers.
+ type: str
+ required: False
+ default: "now"
+ cron_schedule:
+ description:
+ - Enter a cron-style schedule.
+ - For example C('*/5 * * * *') (every 5 minutes) or C('0 21 * * *') (every day at 9 PM).
+ - Real-time searches use a default schedule of C('*/5 * * * *').
+ type: str
+ required: False
+ default: "*/5 * * * *"
+ scheduling:
+ description:
+ - Controls the way the scheduler computes the next execution time of a scheduled search.
+ - >
+ Learn more:
+ https://docs.splunk.com/Documentation/Splunk/7.2.3/Report/Configurethepriorityofscheduledreports#Real-time_scheduling_and_continuous_scheduling
+ type: str
+ required: False
+ default: "real-time"
+ choices:
+ - "real-time"
+ - "continuous"
+ schedule_window:
+ description:
+ - Let report run at any time within a window that opens at its scheduled run time,
+ to improve efficiency when there are many concurrently scheduled reports.
+ The "auto" setting automatically determines the best window width for the report.
+ type: str
+ required: False
+ default: "0"
+ schedule_priority:
+ description:
+ - Raise the scheduling priority of a report. Set to "Higher" to prioritize
+ it above other searches of the same scheduling mode, or "Highest" to
+ prioritize it above other searches regardless of mode. Use with discretion.
+ type: str
+ required: False
+ default: "Default"
+ choices:
+ - "Default"
+ - "Higher"
+ - "Highest"
+ trigger_alert_when:
+ description:
+ - Raise the scheduling priority of a report. Set to "Higher" to prioritize
+ it above other searches of the same scheduling mode, or "Highest" to
+ prioritize it above other searches regardless of mode. Use with discretion.
+ type: str
+ required: False
+ default: "number of events"
+ choices:
+ - "number of events"
+ - "number of results"
+ - "number of hosts"
+ - "number of sources"
+ trigger_alert_when_condition:
+ description:
+ - Conditional to pass to C(trigger_alert_when)
+ type: str
+ required: False
+ default: "greater than"
+ choices:
+ - "greater than"
+ - "less than"
+ - "equal to"
+ - "not equal to"
+ - "drops by"
+ - "rises by"
+ trigger_alert_when_value:
+ description:
+ - Value to pass to C(trigger_alert_when)
+ type: str
+ required: False
+ default: "10"
+ throttle_window_duration:
+ description:
+ - "How much time to ignore other events that match the field values specified in Fields to group by."
+ type: str
+ required: False
+ throttle_fields_to_group_by:
+ description:
+ - "Type the fields to consider for matching events for throttling."
+ type: str
+ required: False
+ suppress_alerts:
+ description:
+ - "To suppress alerts from this correlation search or not"
+ type: bool
+ required: False
+ default: False
+notes:
+ - >
+ The following options are not yet supported:
+ throttle_window_duration, throttle_fields_to_group_by, and adaptive_response_actions
+
+author: Ansible Security Automation Team (@maxamillion) <https://github.com/ansible-security>
+"""
+# FIXME - adaptive response action association is probaby going to need to be a separate module we stitch together in a role
+
+EXAMPLES = """
+- name: Example of creating a correlation search with splunk.es.coorelation_search
+ splunk.es.correlation_search:
+ name: "Example Coorelation Search From Ansible"
+ description: "Example Coorelation Search From Ansible, description."
+ search: 'source="/var/log/snort.log"'
+ state: "present"
+"""
+
+from ansible.module_utils.basic import AnsibleModule
+from ansible.module_utils._text import to_text
+
+from ansible.module_utils.urls import Request
+from ansible.module_utils.six.moves.urllib.parse import urlencode, quote_plus
+from ansible.module_utils.six.moves.urllib.error import HTTPError
+from ansible_collections.splunk.es.plugins.module_utils.splunk import (
+ SplunkRequest,
+ parse_splunk_args,
+)
+
+import copy
+
+
+def main():
+
+ argspec = dict(
+ name=dict(required=True, type="str"),
+ description=dict(required=True, type="str"),
+ state=dict(choices=["present", "absent", "enabled", "disabled"], required=True),
+ search=dict(required=True, type="str"),
+ app=dict(type="str", required=False, default="SplunkEnterpriseSecuritySuite"),
+ ui_dispatch_context=dict(type="str", required=False),
+ time_earliest=dict(type="str", required=False, default="-24h"),
+ time_latest=dict(type="str", required=False, default="now"),
+ cron_schedule=dict(type="str", required=False, default="*/5 * * * *"),
+ scheduling=dict(
+ type="str",
+ required=False,
+ default="real-time",
+ choices=["real-time", "continuous"],
+ ),
+ schedule_window=dict(type="str", required=False, default="0"),
+ schedule_priority=dict(
+ type="str",
+ required=False,
+ default="Default",
+ choices=["Default", "Higher", "Highest"],
+ ),
+ trigger_alert_when=dict(
+ type="str",
+ required=False,
+ default="number of events",
+ choices=[
+ "number of events",
+ "number of results",
+ "number of hosts",
+ "number of sources",
+ ],
+ ),
+ trigger_alert_when_condition=dict(
+ type="str",
+ required=False,
+ default="greater than",
+ choices=[
+ "greater than",
+ "less than",
+ "equal to",
+ "not equal to",
+ "drops by",
+ "rises by",
+ ],
+ ),
+ trigger_alert_when_value=dict(type="str", required=False, default="10"),
+ throttle_window_duration=dict(type="str", required=False),
+ throttle_fields_to_group_by=dict(type="str", required=False),
+ suppress_alerts=dict(type="bool", required=False, default=False),
+ )
+
+ module = AnsibleModule(argument_spec=argspec, supports_check_mode=True)
+ if module.params["state"] in ["present", "enabled"]:
+ module_disabled_state = False
+ else:
+ module_disabled_state = True
+ splunk_request = SplunkRequest(
+ module,
+ headers={"Content-Type": "application/x-www-form-urlencoded"},
+ not_rest_data_keys=["state"],
+ )
+
+ try:
+ query_dict = splunk_request.get_by_path(
+ "servicesNS/nobody/SplunkEnterpriseSecuritySuite/saved/searches/{0}".format(
+ quote_plus(module.params["name"])
+ )
+ )
+ except HTTPError as e:
+ # the data monitor doesn't exist
+ query_dict = {}
+
+ # Have to custom craft the data here because they overload the saved searches
+ # endpoint in the rest api and we want to hide the nuance from the user
+ request_post_data = {}
+ request_post_data["name"] = module.params["name"]
+ request_post_data["action.correlationsearch.enabled"] = "1"
+ request_post_data["is_scheduled"] = True
+ request_post_data["dispatch.rt_backfill"] = True
+ request_post_data["action.correlationsearch.label"] = module.params["name"]
+ request_post_data["description"] = module.params["description"]
+ request_post_data["search"] = module.params["search"]
+ request_post_data["request.ui_dispatch_app"] = module.params["app"]
+ if module.params["ui_dispatch_context"]:
+ request_post_data["request.ui_dispatch_context"] = module.params[
+ "ui_dispatch_context"
+ ]
+ request_post_data["dispatch.earliest_time"] = module.params["time_earliest"]
+ request_post_data["dispatch.latest_time"] = module.params["time_latest"]
+ request_post_data["cron_schedule"] = module.params["cron_schedule"]
+ if module.params["scheduling"] == "real-time":
+ request_post_data["realtime_schedule"] = True
+ else:
+ request_post_data["realtime_schedule"] = False
+ request_post_data["schedule_window"] = module.params["schedule_window"]
+ request_post_data["schedule_priority"] = module.params["schedule_priority"].lower()
+ request_post_data["alert_type"] = module.params["trigger_alert_when"]
+ request_post_data["alert_comparator"] = module.params[
+ "trigger_alert_when_condition"
+ ]
+ request_post_data["alert_threshold"] = module.params["trigger_alert_when_value"]
+ request_post_data["alert.suppress"] = module.params["suppress_alerts"]
+ request_post_data["disabled"] = module_disabled_state
+
+ if module.params["state"] in ["present", "enabled", "disabled"]:
+ if query_dict:
+ needs_change = False
+ for arg in request_post_data:
+ if arg in query_dict["entry"][0]["content"]:
+ if to_text(query_dict["entry"][0]["content"][arg]) != to_text(
+ request_post_data[arg]
+ ):
+ needs_change = True
+ if not needs_change:
+ module.exit_json(
+ changed=False, msg="Nothing to do.", splunk_data=query_dict
+ )
+ if module.check_mode and needs_change:
+ module.exit_json(
+ changed=True,
+ msg="A change would have been made if not in check mode.",
+ splunk_data=query_dict,
+ )
+ if needs_change:
+ # FIXME - need to find a reasonable way to deal with action.correlationsearch.enabled
+ del request_post_data[
+ "name"
+ ] # If this is present, splunk assumes we're trying to create a new one wit the same name
+ splunk_data = splunk_request.create_update(
+ "servicesNS/nobody/SplunkEnterpriseSecuritySuite/saved/searches/{0}".format(
+ quote_plus(module.params["name"])
+ ),
+ data=urlencode(request_post_data),
+ )
+ module.exit_json(
+ changed=True, msg="{0} updated.", splunk_data=splunk_data
+ )
+ else:
+ # Create it
+ splunk_data = splunk_request.create_update(
+ "servicesNS/nobody/SplunkEnterpriseSecuritySuite/saved/searches",
+ data=urlencode(request_post_data),
+ )
+ module.exit_json(changed=True, msg="{0} created.", splunk_data=splunk_data)
+
+ elif module.params["state"] == "absent":
+ if query_dict:
+ splunk_data = splunk_request.delete_by_path(
+ "services/saved/searches/{0}".format(quote_plus(module.params["name"]))
+ )
+ module.exit_json(
+ changed=True,
+ msg="Deleted {0}.".format(module.params["name"]),
+ splunk_data=splunk_data,
+ )
+
+ module.exit_json(changed=False, msg="Nothing to do.", splunk_data=query_dict)
+
+
+if __name__ == "__main__":
+ main()
diff --git a/collections-debian-merged/ansible_collections/splunk/es/plugins/modules/splunk_correlation_search_info.py b/collections-debian-merged/ansible_collections/splunk/es/plugins/modules/splunk_correlation_search_info.py
new file mode 100644
index 00000000..b6aed3c0
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/splunk/es/plugins/modules/splunk_correlation_search_info.py
@@ -0,0 +1,78 @@
+#!/usr/bin/python
+# -*- coding: utf-8 -*-
+# https://github.com/ansible/ansible/issues/65816
+# https://github.com/PyCQA/pylint/issues/214
+
+# (c) 2018, Adam Miller (admiller@redhat.com)
+# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
+
+from __future__ import absolute_import, division, print_function
+
+__metaclass__ = type
+
+DOCUMENTATION = """
+---
+module: correlation_search_info
+short_description: Manage Splunk Enterprise Security Correlation Searches
+description:
+ - This module allows for the query of Splunk Enterprise Security Correlation Searches
+version_added: "1.0.0"
+options:
+ name:
+ description:
+ - Name of coorelation search
+ required: false
+ type: str
+
+author: Ansible Security Automation Team (@maxamillion) <https://github.com/ansible-security>
+"""
+# FIXME - adaptive response action association is probaby going to need to be a separate module we stitch together in a role
+
+EXAMPLES = """
+- name: Example usage of splunk.es.correlation_search_info
+ splunk.es.correlation_search_info:
+ name: "Name of correlation search"
+ register: scorrelation_search_info
+
+- name: debug display information gathered
+ debug:
+ var: scorrelation_search_info
+"""
+
+from ansible.module_utils.basic import AnsibleModule
+from ansible.module_utils._text import to_text
+
+from ansible.module_utils.urls import Request
+from ansible.module_utils.six.moves.urllib.parse import urlencode, quote_plus
+from ansible.module_utils.six.moves.urllib.error import HTTPError
+from ansible_collections.splunk.es.plugins.module_utils.splunk import SplunkRequest
+
+
+def main():
+
+ argspec = dict(name=dict(required=False, type="str"))
+
+ module = AnsibleModule(argument_spec=argspec, supports_check_mode=True)
+
+ splunk_request = SplunkRequest(module, headers={"Content-Type": "application/json"})
+
+ if module.params["name"]:
+ try:
+ query_dict = splunk_request.get_by_path(
+ "servicesNS/nobody/SplunkEnterpriseSecuritySuite/saved/searches/{0}".format(
+ quote_plus(module.params["name"])
+ )
+ )
+ except HTTPError as e:
+ # the data monitor doesn't exist
+ query_dict = {}
+ else:
+ query_dict = splunk_request.get_by_path(
+ "servicesNS/nobody/SplunkEnterpriseSecuritySuite/saved/searches"
+ )
+
+ module.exit_json(changed=False, splunk_correlation_search_info=query_dict)
+
+
+if __name__ == "__main__":
+ main()
diff --git a/collections-debian-merged/ansible_collections/splunk/es/plugins/modules/splunk_data_input_monitor.py b/collections-debian-merged/ansible_collections/splunk/es/plugins/modules/splunk_data_input_monitor.py
new file mode 100644
index 00000000..abe1bd2e
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/splunk/es/plugins/modules/splunk_data_input_monitor.py
@@ -0,0 +1,258 @@
+#!/usr/bin/python
+# -*- coding: utf-8 -*-
+# https://github.com/ansible/ansible/issues/65816
+# https://github.com/PyCQA/pylint/issues/214
+
+# (c) 2018, Adam Miller (admiller@redhat.com)
+# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
+
+from __future__ import absolute_import, division, print_function
+
+__metaclass__ = type
+
+DOCUMENTATION = """
+---
+module: data_input_monitor
+short_description: Manage Splunk Data Inputs of type Monitor
+description:
+ - This module allows for addition or deletion of File and Directory Monitor Data Inputs in Splunk.
+version_added: "1.0.0"
+options:
+ name:
+ description:
+ - The file or directory path to monitor on the system.
+ required: True
+ type: str
+ state:
+ description:
+ - Add or remove a data source.
+ required: True
+ choices:
+ - "present"
+ - "absent"
+ type: str
+ blacklist:
+ description:
+ - Specify a regular expression for a file path. The file path that matches this regular expression is not indexed.
+ required: False
+ type: str
+ check_index:
+ description:
+ - If set to C(True), the index value is checked to ensure that it is the name of a valid index.
+ required: False
+ type: bool
+ default: False
+ check_path:
+ description:
+ - If set to C(True), the name value is checked to ensure that it exists.
+ required: False
+ type: bool
+ crc_salt:
+ description:
+ - A string that modifies the file tracking identity for files in this input.
+ The magic value <SOURCE> invokes special behavior (see admin documentation).
+ required: False
+ type: str
+ disabled:
+ description:
+ - Indicates if input monitoring is disabled.
+ required: False
+ default: False
+ type: bool
+ followTail:
+ description:
+ - If set to C(True), files that are seen for the first time is read from the end.
+ required: False
+ type: bool
+ default: False
+ host:
+ description:
+ - The value to populate in the host field for events from this data input.
+ required: False
+ type: str
+ host_regex:
+ description:
+ - Specify a regular expression for a file path. If the path for a file
+ matches this regular expression, the captured value is used to populate
+ the host field for events from this data input. The regular expression
+ must have one capture group.
+ required: False
+ type: str
+ host_segment:
+ description:
+ - Use the specified slash-separate segment of the filepath as the host field value.
+ required: False
+ type: int
+ ignore_older_than:
+ description:
+ - Specify a time value. If the modification time of a file being monitored
+ falls outside of this rolling time window, the file is no longer being monitored.
+ required: False
+ type: str
+ index:
+ description:
+ - Which index events from this input should be stored in. Defaults to default.
+ required: False
+ type: str
+ recursive:
+ description:
+ - Setting this to False prevents monitoring of any subdirectories encountered within this data input.
+ required: False
+ type: bool
+ default: False
+ rename_source:
+ description:
+ - The value to populate in the source field for events from this data input.
+ The same source should not be used for multiple data inputs.
+ required: False
+ type: str
+ sourcetype:
+ description:
+ - The value to populate in the sourcetype field for incoming events.
+ required: False
+ type: str
+ time_before_close:
+ description:
+ - When Splunk software reaches the end of a file that is being read, the
+ file is kept open for a minimum of the number of seconds specified in
+ this value. After this period has elapsed, the file is checked again for
+ more data.
+ required: False
+ type: int
+ whitelist:
+ description:
+ - Specify a regular expression for a file path. Only file paths that match this regular expression are indexed.
+ required: False
+ type: str
+
+author: Ansible Security Automation Team (@maxamillion) <https://github.com/ansible-security>
+"""
+
+EXAMPLES = """
+- name: Example adding data input monitor with splunk.es.data_input_monitor
+ splunk.es.data_input_monitor:
+ name: "/var/log/example.log"
+ state: "present"
+ recursive: True
+"""
+
+from ansible.module_utils.basic import AnsibleModule
+from ansible.module_utils._text import to_text
+
+from ansible.module_utils.urls import Request
+from ansible.module_utils.six.moves.urllib.parse import urlencode, quote_plus
+from ansible.module_utils.six.moves.urllib.error import HTTPError
+from ansible_collections.splunk.es.plugins.module_utils.splunk import (
+ SplunkRequest,
+ parse_splunk_args,
+)
+
+import copy
+
+
+def main():
+
+ argspec = dict(
+ name=dict(required=True, type="str"),
+ state=dict(choices=["present", "absent"], required=True),
+ blacklist=dict(required=False, type="str", default=None),
+ check_index=dict(required=False, type="bool", default=False),
+ check_path=dict(required=False, type="bool", default=None),
+ crc_salt=dict(required=False, type="str", default=None),
+ disabled=dict(required=False, type="bool", default=False),
+ followTail=dict(required=False, type="bool", default=False),
+ host=dict(required=False, type="str", default=None),
+ host_segment=dict(required=False, type="int", default=None),
+ host_regex=dict(required=False, type="str", default=None),
+ ignore_older_than=dict(required=False, type="str", default=None),
+ index=dict(required=False, type="str", default=None),
+ recursive=dict(required=False, type="bool", default=False),
+ rename_source=dict(required=False, type="str", default=None),
+ sourcetype=dict(required=False, type="str", default=None),
+ time_before_close=dict(required=False, type="int", default=None),
+ whitelist=dict(required=False, type="str", default=None),
+ )
+
+ module = AnsibleModule(argument_spec=argspec, supports_check_mode=True)
+
+ # map of keys for the splunk REST API that aren't pythonic so we have to
+ # handle the substitutes
+ keymap = {
+ "check_index": "check-index",
+ "check_path": "check-path",
+ "crc_salt": "crc-salt",
+ "ignore_older_than": "ignore-older-than",
+ "rename_source": "rename-source",
+ "time_before_close": "time-before-close",
+ }
+
+ splunk_request = SplunkRequest(
+ module,
+ headers={"Content-Type": "application/x-www-form-urlencoded"},
+ keymap=keymap,
+ not_rest_data_keys=["state"],
+ )
+ # This is where the splunk_* args are processed
+ request_data = splunk_request.get_data()
+
+ query_dict = splunk_request.get_by_path(
+ "servicesNS/nobody/search/data/inputs/monitor/{0}".format(
+ quote_plus(module.params["name"])
+ )
+ )
+
+ if module.params["state"] == "present":
+ if query_dict:
+ needs_change = False
+ for arg in request_data:
+ if arg in query_dict["entry"][0]["content"]:
+ if to_text(query_dict["entry"][0]["content"][arg]) != to_text(
+ request_data[arg]
+ ):
+ needs_change = True
+ if not needs_change:
+ module.exit_json(
+ changed=False, msg="Nothing to do.", splunk_data=query_dict
+ )
+ if module.check_mode and needs_change:
+ module.exit_json(
+ changed=True,
+ msg="A change would have been made if not in check mode.",
+ splunk_data=query_dict,
+ )
+ if needs_change:
+ splunk_data = splunk_request.create_update(
+ "servicesNS/nobody/search/data/inputs/monitor/{0}".format(
+ quote_plus(module.params["name"])
+ )
+ )
+ module.exit_json(
+ changed=True, msg="{0} updated.", splunk_data=splunk_data
+ )
+ else:
+ # Create it
+ _data = splunk_request.get_data()
+ _data["name"] = module.params["name"]
+ splunk_data = splunk_request.create_update(
+ "servicesNS/nobody/search/data/inputs/monitor", data=urlencode(_data)
+ )
+ module.exit_json(changed=True, msg="{0} created.", splunk_data=splunk_data)
+
+ if module.params["state"] == "absent":
+ if query_dict:
+ splunk_data = splunk_request.delete_by_path(
+ "servicesNS/nobody/search/data/inputs/monitor/{0}".format(
+ quote_plus(module.params["name"])
+ )
+ )
+ module.exit_json(
+ changed=True,
+ msg="Deleted {0}.".format(module.params["name"]),
+ splunk_data=splunk_data,
+ )
+
+ module.exit_json(changed=False, msg="Nothing to do.", splunk_data=query_dict)
+
+
+if __name__ == "__main__":
+ main()
diff --git a/collections-debian-merged/ansible_collections/splunk/es/plugins/modules/splunk_data_input_network.py b/collections-debian-merged/ansible_collections/splunk/es/plugins/modules/splunk_data_input_network.py
new file mode 100644
index 00000000..fba8feba
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/splunk/es/plugins/modules/splunk_data_input_network.py
@@ -0,0 +1,272 @@
+#!/usr/bin/python
+# -*- coding: utf-8 -*-
+# https://github.com/ansible/ansible/issues/65816
+# https://github.com/PyCQA/pylint/issues/214
+
+# (c) 2018, Adam Miller (admiller@redhat.com)
+# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
+
+from __future__ import absolute_import, division, print_function
+
+__metaclass__ = type
+
+DOCUMENTATION = """
+---
+module: data_input_network
+short_description: Manage Splunk Data Inputs of type TCP or UDP
+description:
+ - This module allows for addition or deletion of TCP and UDP Data Inputs in Splunk.
+version_added: "1.0.0"
+options:
+ protocol:
+ description:
+ - Choose between tcp or udp
+ required: True
+ choices:
+ - 'tcp'
+ - 'udp'
+ type: str
+ connection_host:
+ description:
+ - Set the host for the remote server that is sending data.
+ - C(ip) sets the host to the IP address of the remote server sending data.
+ - C(dns) sets the host to the reverse DNS entry for the IP address of the remote server sending data.
+ - C(none) leaves the host as specified in inputs.conf, which is typically the Splunk system hostname.
+ default: "ip"
+ required: False
+ type: str
+ choices:
+ - "ip"
+ - "dns"
+ - "none"
+ state:
+ description:
+ - Enable, disable, create, or destroy
+ choices:
+ - "present"
+ - "absent"
+ - "enabled"
+ - "disable"
+ required: False
+ default: "present"
+ type: str
+ datatype:
+ description: >
+ Forwarders can transmit three types of data: raw, unparsed, or parsed.
+ C(cooked) data refers to parsed and unparsed formats.
+ choices:
+ - "cooked"
+ - "raw"
+ default: "raw"
+ required: False
+ type: str
+ host:
+ description:
+ - Host from which the indexer gets data.
+ required: False
+ type: str
+ index:
+ description:
+ - default Index to store generated events.
+ type: str
+ name:
+ description:
+ - The input port which receives raw data.
+ required: True
+ type: str
+ queue:
+ description:
+ - Specifies where the input processor should deposit the events it reads. Defaults to parsingQueue.
+ - Set queue to parsingQueue to apply props.conf and other parsing rules to your data. For more
+ information about props.conf and rules for timestamping and linebreaking, refer to props.conf and
+ the online documentation at "Monitor files and directories with inputs.conf"
+ - Set queue to indexQueue to send your data directly into the index.
+ choices:
+ - "parsingQueue"
+ - "indexQueue"
+ type: str
+ required: False
+ default: "parsingQueue"
+ rawTcpDoneTimeout:
+ description:
+ - Specifies in seconds the timeout value for adding a Done-key.
+ - If a connection over the port specified by name remains idle after receiving data for specified
+ number of seconds, it adds a Done-key. This implies the last event is completely received.
+ default: 10
+ type: int
+ required: False
+ restrictToHost:
+ description:
+ - Allows for restricting this input to only accept data from the host specified here.
+ required: False
+ type: str
+ ssl:
+ description:
+ - Enable or disble ssl for the data stream
+ required: False
+ type: bool
+ source:
+ description:
+ - Sets the source key/field for events from this input. Defaults to the input file path.
+ - >
+ Sets the source key initial value. The key is used during parsing/indexing, in particular to set
+ the source field during indexing. It is also the source field used at search time. As a convenience,
+ the chosen string is prepended with 'source::'.
+ - >
+ Note: Overriding the source key is generally not recommended. Typically, the input layer provides a
+ more accurate string to aid in problem analysis and investigation, accurately recording the file from
+ which the data was retrieved. Consider use of source types, tagging, and search wildcards before
+ overriding this value.
+ type: str
+ sourcetype:
+ description:
+ - Set the source type for events from this input.
+ - '"sourcetype=" is automatically prepended to <string>.'
+ - Defaults to audittrail (if signedaudit=True) or fschange (if signedaudit=False).
+ type: str
+
+author: Ansible Security Automation Team (@maxamillion) <https://github.com/ansible-security>
+"""
+
+EXAMPLES = """
+- name: Example adding data input network with splunk.es.data_input_network
+ splunk.es.data_input_network:
+ name: "8099"
+ protocol: "tcp"
+ state: "present"
+"""
+
+
+from ansible.module_utils.basic import AnsibleModule
+from ansible.module_utils._text import to_text
+
+from ansible.module_utils.urls import Request
+from ansible.module_utils.six.moves.urllib.parse import urlencode, quote_plus
+from ansible.module_utils.six.moves.urllib.error import HTTPError
+from ansible_collections.splunk.es.plugins.module_utils.splunk import (
+ SplunkRequest,
+ parse_splunk_args,
+)
+
+import copy
+
+
+def main():
+
+ argspec = dict(
+ state=dict(
+ required=False,
+ choices=["present", "absent", "enabled", "disable"],
+ default="present",
+ type="str",
+ ),
+ connection_host=dict(
+ required=False, choices=["ip", "dns", "none"], default="ip", type="str"
+ ),
+ host=dict(required=False, type="str", default=None),
+ index=dict(required=False, type="str", default=None),
+ name=dict(required=True, type="str"),
+ protocol=dict(required=True, type="str", choices=["tcp", "udp"]),
+ queue=dict(
+ required=False,
+ type="str",
+ choices=["parsingQueue", "indexQueue"],
+ default="parsingQueue",
+ ),
+ rawTcpDoneTimeout=dict(required=False, type="int", default=10),
+ restrictToHost=dict(required=False, type="str", default=None),
+ ssl=dict(required=False, type="bool", default=None),
+ source=dict(required=False, type="str", default=None),
+ sourcetype=dict(required=False, type="str", default=None),
+ datatype=dict(required=False, choices=["cooked", "raw"], default="raw"),
+ )
+
+ module = AnsibleModule(argument_spec=argspec, supports_check_mode=True)
+
+ splunk_request = SplunkRequest(
+ module,
+ headers={"Content-Type": "application/x-www-form-urlencoded"},
+ not_rest_data_keys=["state", "datatype", "protocol"],
+ )
+ # This is where the splunk_* args are processed
+ request_data = splunk_request.get_data()
+
+ query_dict = splunk_request.get_by_path(
+ "servicesNS/nobody/search/data/inputs/{0}/{1}/{2}".format(
+ quote_plus(module.params["protocol"]),
+ quote_plus(module.params["datatype"]),
+ quote_plus(module.params["name"]),
+ )
+ )
+
+ if module.params["state"] in ["present", "enabled", "disabled"]:
+ _data = splunk_request.get_data()
+ if module.params["state"] in ["present", "enabled"]:
+ _data["disabled"] = False
+ else:
+ _data["disabled"] = True
+ if query_dict:
+ needs_change = False
+ for arg in request_data:
+ if arg in query_dict["entry"][0]["content"]:
+ if to_text(query_dict["entry"][0]["content"][arg]) != to_text(
+ request_data[arg]
+ ):
+ needs_change = True
+ if not needs_change:
+ module.exit_json(
+ changed=False, msg="Nothing to do.", splunk_data=query_dict
+ )
+ if module.check_mode and needs_change:
+ module.exit_json(
+ changed=True,
+ msg="A change would have been made if not in check mode.",
+ splunk_data=query_dict,
+ )
+ if needs_change:
+ splunk_data = splunk_request.create_update(
+ "servicesNS/nobody/search/data/inputs/{0}/{1}/{2}".format(
+ quote_plus(module.params["protocol"]),
+ quote_plus(module.params["datatype"]),
+ quote_plus(module.params["name"]),
+ data=urlencode(_data),
+ )
+ )
+ if module.params["state"] in ["present", "enabled"]:
+ module.exit_json(
+ changed=True, msg="{0} updated.", splunk_data=splunk_data
+ )
+ else:
+ module.exit_json(
+ changed=True, msg="{0} disabled.", splunk_data=splunk_data
+ )
+ else:
+ # Create it
+ splunk_data = splunk_request.create_update(
+ "servicesNS/nobody/search/data/inputs/{0}/{1}".format(
+ quote_plus(module.params["protocol"]),
+ quote_plus(module.params["datatype"]),
+ ),
+ data=urlencode(_data),
+ )
+ module.exit_json(changed=True, msg="{0} created.", splunk_data=splunk_data)
+ elif module.params["state"] == "absent":
+ if query_dict:
+ splunk_data = splunk_request.delete_by_path(
+ "servicesNS/nobody/search/data/inputs/{0}/{1}/{2}".format(
+ quote_plus(module.params["protocol"]),
+ quote_plus(module.params["datatype"]),
+ quote_plus(module.params["name"]),
+ )
+ )
+ module.exit_json(
+ changed=True,
+ msg="Deleted {0}.".format(module.params["name"]),
+ splunk_data=splunk_data,
+ )
+
+ module.exit_json(changed=False, msg="Nothing to do.", splunk_data={})
+
+
+if __name__ == "__main__":
+ main()
diff --git a/collections-debian-merged/ansible_collections/splunk/es/requirements.txt b/collections-debian-merged/ansible_collections/splunk/es/requirements.txt
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/splunk/es/requirements.txt
diff --git a/collections-debian-merged/ansible_collections/splunk/es/test-requirements.txt b/collections-debian-merged/ansible_collections/splunk/es/test-requirements.txt
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/splunk/es/test-requirements.txt
diff --git a/collections-debian-merged/ansible_collections/splunk/es/tests/.keep b/collections-debian-merged/ansible_collections/splunk/es/tests/.keep
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/splunk/es/tests/.keep
diff --git a/collections-debian-merged/ansible_collections/splunk/es/tests/integration/target-prefixes.network b/collections-debian-merged/ansible_collections/splunk/es/tests/integration/target-prefixes.network
new file mode 100644
index 00000000..2a852434
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/splunk/es/tests/integration/target-prefixes.network
@@ -0,0 +1 @@
+splunk
diff --git a/collections-debian-merged/ansible_collections/splunk/es/tests/integration/targets/adaptive_response_notable_event/aliases b/collections-debian-merged/ansible_collections/splunk/es/tests/integration/targets/adaptive_response_notable_event/aliases
new file mode 100644
index 00000000..f4c7f6a2
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/splunk/es/tests/integration/targets/adaptive_response_notable_event/aliases
@@ -0,0 +1 @@
+network/splunk
diff --git a/collections-debian-merged/ansible_collections/splunk/es/tests/integration/targets/adaptive_response_notable_event/tasks/main.yml b/collections-debian-merged/ansible_collections/splunk/es/tests/integration/targets/adaptive_response_notable_event/tasks/main.yml
new file mode 100644
index 00000000..c3f1ec1b
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/splunk/es/tests/integration/targets/adaptive_response_notable_event/tasks/main.yml
@@ -0,0 +1,40 @@
+---
+- name: Test splunk.es.adaptive_response_notable_event
+ adaptive_response_notable_event:
+ name: "Fake notable event from playbook"
+ correlation_search_name: "Test Fake Coorelation Search From Playbook"
+ description: "Test Fake notable event from playbook, description edition."
+ state: "present"
+ next_steps:
+ - ping
+ - nslookup
+ recommended_actions:
+ - script
+ - ansiblesecurityautomation
+ register: adaptive_response_notable_event_out
+
+- name: Assert Create splunk.es.adaptive_response_notable_event CHANGED
+ assert:
+ that:
+ - adaptive_response_notable_event_out is changed
+ - adaptive_response_notable_event_out is not failed
+
+- name: Validate splunk.es.adaptive_response_notable_event idempotent
+ adaptive_response_notable_event:
+ name: "Fake notable event from playbook"
+ correlation_search_name: "Test Fake Coorelation Search From Playbook"
+ description: "Test Fake notable event from playbook, description edition."
+ state: "present"
+ next_steps:
+ - ping
+ - nslookup
+ recommended_actions:
+ - script
+ - ansiblesecurityautomation
+ register: adaptive_response_notable_event_out2
+
+- name: Assert Create splunk.es.adaptive_response_notable_event IDEMPOTENT
+ assert:
+ that:
+ - adaptive_response_notable_event_out2 is not changed
+ - adaptive_response_notable_event2 is not failed
diff --git a/collections-debian-merged/ansible_collections/splunk/es/tests/integration/targets/correlation_search_info/aliases b/collections-debian-merged/ansible_collections/splunk/es/tests/integration/targets/correlation_search_info/aliases
new file mode 100644
index 00000000..f4c7f6a2
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/splunk/es/tests/integration/targets/correlation_search_info/aliases
@@ -0,0 +1 @@
+network/splunk
diff --git a/collections-debian-merged/ansible_collections/splunk/es/tests/integration/targets/correlation_search_info/tasks/main.yml b/collections-debian-merged/ansible_collections/splunk/es/tests/integration/targets/correlation_search_info/tasks/main.yml
new file mode 100644
index 00000000..6469bc98
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/splunk/es/tests/integration/targets/correlation_search_info/tasks/main.yml
@@ -0,0 +1,79 @@
+---
+- name: Test correlation_search - CREATE
+ correlation_search:
+ name: "Test Fake Coorelation Search From Playbook"
+ description: "Test Fake Coorelation Search From Playbook, description edition."
+ search: 'source="/var/log/snort.log"'
+ state: "present"
+ register: correlation_search_create_output
+
+- name: Assert Create splunk.es.correlation_search CHANGED
+ assert:
+ that:
+ - correlation_search_create_output is changed
+ - correlation_search_create_output is not failed
+
+- name: Test correlation_search - CREATE IDEMPOTENT
+ correlation_search:
+ name: "Test Fake Coorelation Search From Playbook"
+ description: "Test Fake Coorelation Search From Playbook, description edition."
+ search: 'source="/var/log/snort.log"'
+ state: "present"
+ register: correlation_search_create_output2
+
+- name: Assert Create splunk.es.correlation_search IDEMPOTENT
+ assert:
+ that:
+ - correlation_search_create_output2 is not changed
+ - correlation_search_create_output2 is not failed
+
+- name: Test correlation_search_info
+ correlation_search_info:
+ name: "Test Fake Coorelation Search From Playbook"
+ register: correlation_search_info_output
+
+- name: Assert Create splunk.es.correlation_search CHANGED
+ assert:
+ that:
+ - correlation_search_info_output is not changed
+ - correlation_search_info_output is not failed
+
+- name: Test correlation_search - DELETE
+ correlation_search:
+ name: "Test Fake Coorelation Search From Playbook"
+ description: "Test Fake Coorelation Search From Playbook, description edition."
+ search: 'source="/var/log/snort.log"'
+ state: "absent"
+ register: correlation_search_delete_output
+
+- name: Assert Create splunk.es.correlation_search CHANGED
+ assert:
+ that:
+ - correlation_search_delete_output is changed
+ - correlation_search_delete_output is not failed
+
+- name: Test correlation_search - DELETE IDEMPOTENT
+ correlation_search:
+ name: "Test Fake Coorelation Search From Playbook"
+ description: "Test Fake Coorelation Search From Playbook, description edition."
+ search: 'source="/var/log/snort.log"'
+ state: "absent"
+ register: correlation_search_delete_output2
+
+- name: Assert Create splunk.es.correlation_search IDEMPOTENT
+ assert:
+ that:
+ - correlation_search_delete_output2 is not changed
+ - correlation_search_delete_output2 is not failed
+
+- name: Test correlation_search_info
+ correlation_search_info:
+ name: "Test Fake Coorelation Search From Playbook"
+ ignore_errors: yes
+ register: correlation_search_info_output2
+
+- name: Assert Create splunk.es.correlation_search FAILED
+ assert:
+ that:
+ - correlation_search_info_output2 is not changed
+ - correlation_search_info_output2 is failed
diff --git a/collections-debian-merged/ansible_collections/splunk/es/tests/integration/targets/data_input_monitor/aliases b/collections-debian-merged/ansible_collections/splunk/es/tests/integration/targets/data_input_monitor/aliases
new file mode 100644
index 00000000..f4c7f6a2
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/splunk/es/tests/integration/targets/data_input_monitor/aliases
@@ -0,0 +1 @@
+network/splunk
diff --git a/collections-debian-merged/ansible_collections/splunk/es/tests/integration/targets/data_input_monitor/tasks/main.yml b/collections-debian-merged/ansible_collections/splunk/es/tests/integration/targets/data_input_monitor/tasks/main.yml
new file mode 100644
index 00000000..585f21d2
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/splunk/es/tests/integration/targets/data_input_monitor/tasks/main.yml
@@ -0,0 +1,52 @@
+---
+- name: Test data_input_monitor - CREATE
+ data_input_monitor:
+ name: "/var/log/messages"
+ state: "present"
+ recursive: True
+ register: data_input_monitor_output
+
+- name: Assert Create splunk.es.data_input_monitor CHANGED
+ assert:
+ that:
+ - data_input_monitor_output is changed
+ - data_input_monitor_output is not failed
+
+- name: Test data_input_monitor - CREATE IDEMPOTENT
+ data_input_monitor:
+ name: "/var/log/messages"
+ state: "present"
+ recursive: True
+ register: data_input_monitor_output2
+
+- name: Assert Create splunk.es.data_input_monitor CREATE IDEMPOTENT
+ assert:
+ that:
+ - data_input_monitor_output2 is not changed
+ - data_input_monitor_output2 is not failed
+
+- name: Test data_input_monitor - DELETE
+ data_input_monitor:
+ name: "/var/log/messages"
+ state: "absent"
+ recursive: True
+ register: data_input_monitor_absent_output
+
+- name: Assert Create splunk.es.data_input_monitor CHANGED
+ assert:
+ that:
+ - data_input_monitor_absent_output is changed
+ - data_input_monitor_absent_output is not failed
+
+- name: Test data_input_monitor - DELETE IDEMPOTENT
+ data_input_monitor:
+ name: "/var/log/messages"
+ state: "absent"
+ recursive: True
+ register: data_input_monitor_absent_output2
+
+- name: Assert Create splunk.es.data_input_monitor DELETE IDEMPOTENT
+ assert:
+ that:
+ - data_input_monitor_absent_output2 is not changed
+ - data_input_monitor_absent_output2 is not failed
diff --git a/collections-debian-merged/ansible_collections/splunk/es/tests/integration/targets/data_input_network/aliases b/collections-debian-merged/ansible_collections/splunk/es/tests/integration/targets/data_input_network/aliases
new file mode 100644
index 00000000..f4c7f6a2
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/splunk/es/tests/integration/targets/data_input_network/aliases
@@ -0,0 +1 @@
+network/splunk
diff --git a/collections-debian-merged/ansible_collections/splunk/es/tests/integration/targets/data_input_network/tasks/main.yml b/collections-debian-merged/ansible_collections/splunk/es/tests/integration/targets/data_input_network/tasks/main.yml
new file mode 100644
index 00000000..4eca9ac6
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/splunk/es/tests/integration/targets/data_input_network/tasks/main.yml
@@ -0,0 +1,52 @@
+---
+- name: Test data_input_network - CREATE
+ data_input_network:
+ name: "8099"
+ protocol: "tcp"
+ state: "present"
+ register: data_input_network_output
+
+- name: Assert Create splunk.es.data_input_network CHANGED
+ assert:
+ that:
+ - data_input_network_output is changed
+ - data_input_network_output is not failed
+
+- name: Test data_input_network - CREATE IDEMPOTENT
+ data_input_network:
+ name: "8099"
+ protocol: "tcp"
+ state: "present"
+ register: data_input_network_output2
+
+- name: Assert Create splunk.es.data_input_network CREATE IDEMPOTENT
+ assert:
+ that:
+ - data_input_network_output2 is not changed
+ - data_input_network_output2 is not failed
+
+- name: Test data_input_network - DELETE
+ data_input_network:
+ name: "8099"
+ protocol: "tcp"
+ state: "present"
+ register: data_input_network_absent_output
+
+- name: Assert Create splunk.es.data_input_network CHANGED
+ assert:
+ that:
+ - data_input_network_absent_output is changed
+ - data_input_network_absent_output is not failed
+
+- name: Test data_input_network - DELETE IDEMPOTENT
+ data_input_network:
+ name: "8099"
+ protocol: "tcp"
+ state: "present"
+ register: data_input_network_absent_output2
+
+- name: Assert Create splunk.es.data_input_network DELETE IDEMPOTENT
+ assert:
+ that:
+ - data_input_network_absent_output2 is not changed
+ - data_input_network_absent_output2 is not failed
diff --git a/collections-debian-merged/ansible_collections/splunk/es/tests/integration/targets/splunk_adaptive_response_notable_event/aliases b/collections-debian-merged/ansible_collections/splunk/es/tests/integration/targets/splunk_adaptive_response_notable_event/aliases
new file mode 100644
index 00000000..f4c7f6a2
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/splunk/es/tests/integration/targets/splunk_adaptive_response_notable_event/aliases
@@ -0,0 +1 @@
+network/splunk
diff --git a/collections-debian-merged/ansible_collections/splunk/es/tests/integration/targets/splunk_adaptive_response_notable_event/tasks/main.yml b/collections-debian-merged/ansible_collections/splunk/es/tests/integration/targets/splunk_adaptive_response_notable_event/tasks/main.yml
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/collections-debian-merged/ansible_collections/splunk/es/tests/integration/targets/splunk_adaptive_response_notable_event/tasks/main.yml