From 9883c53c044649c1a840849c60fb08d5870679c0 Mon Sep 17 00:00:00 2001 From: Hendo Lim Date: Thu, 12 Dec 2019 15:07:45 -0800 Subject: [PATCH 1/2] update test and docs --- docs/ADVANCED.md | 34 ++++++++++++++++++++++++++-------- tests/test_docker_splunk.py | 17 +++++++++-------- 2 files changed, 35 insertions(+), 16 deletions(-) diff --git a/docs/ADVANCED.md b/docs/ADVANCED.md index cbb959af..2ce6c78e 100644 --- a/docs/ADVANCED.md +++ b/docs/ADVANCED.md @@ -209,17 +209,35 @@ Here's an overview of what this looks like if you want to persist *all* your ind --- splunk: smartstore: - - indexName: default - remoteName: remote_store - scheme: s3 - remoteLocation: - s3: - access_key: - secret_key: - endpoint: http://s3-us-west-2.amazonaws.com + index: + - indexName: default + remoteName: remote_store + scheme: s3 + remoteLocation: + s3: + access_key: + secret_key: + endpoint: http://s3-us-west-2.amazonaws.com ... ``` +Some cache management options are also available. Options defined under the index stanza correspond to options in `index.conf` https://docs.splunk.com/Documentation/Splunk/8.0.0/admin/Indexesconf. While options defined outside the index correspond to options in `server.conf` https://docs.splunk.com/Documentation/Splunk/8.0.0/admin/Serverconf, note that currently only `[cachemanager]` stanza is supported. This is an example config that defines cache settings and retention policy: +``` +smartstore: + cachemanager: + max_cache_size: 500 + max_concurrent_uploads: 7 + index: + - indexName: custom_index + remoteName: my_storage + scheme: http + remoteLocation: my_storage.net + maxGlobalDataSizeMB: 500 + maxGlobalRawDataSizeMB: 200 + hotlist_recency_secs: 30 + hotlist_bloom_filter_recency_hours: 1 +``` + ## Using deployment servers Briefly, deployment servers can be used to manage otherwise unclustered/disjoint Splunk instances. A primary use-case would be to stand up a deployment server to manage app or configuration distribution to a fleet of 100 universal forwarders. diff --git a/tests/test_docker_splunk.py b/tests/test_docker_splunk.py index cb2a7c36..bc9ba9ee 100644 --- a/tests/test_docker_splunk.py +++ b/tests/test_docker_splunk.py @@ -2170,14 +2170,15 @@ def test_compose_1cm_smartstore(self): assert password # Add a custom conf file output = re.sub(r' smartstore: null', r''' smartstore: - - indexName: default - remoteName: remote_vol - scheme: s3 - remoteLocation: smartstore-test - s3: - access_key: abcd - secret_key: 1234 - endpoint: https://s3-region.amazonaws.com''', output) + index: + - indexName: default + remoteName: remote_vol + scheme: s3 + remoteLocation: smartstore-test + s3: + access_key: abcd + secret_key: 1234 + endpoint: https://s3-region.amazonaws.com''', output) # Write the default.yml to a file with open(os.path.join(FIXTURES_DIR, "default.yml"), "w") as f: f.write(output) From 288a0a2731dba117b7a70b9b7f6746d47cbf5ba5 Mon Sep 17 00:00:00 2001 From: Hendo Lim Date: Fri, 13 Dec 2019 11:06:29 -0800 Subject: [PATCH 2/2] update docs --- docs/ADVANCED.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ADVANCED.md b/docs/ADVANCED.md index 2ce6c78e..5d774602 100644 --- a/docs/ADVANCED.md +++ b/docs/ADVANCED.md @@ -221,7 +221,7 @@ splunk: ... ``` -Some cache management options are also available. Options defined under the index stanza correspond to options in `index.conf` https://docs.splunk.com/Documentation/Splunk/8.0.0/admin/Indexesconf. While options defined outside the index correspond to options in `server.conf` https://docs.splunk.com/Documentation/Splunk/8.0.0/admin/Serverconf, note that currently only `[cachemanager]` stanza is supported. This is an example config that defines cache settings and retention policy: +Some cache management options are also available. Options defined under the index stanza correspond to options in `indexes.conf` https://docs.splunk.com/Documentation/Splunk/latest/admin/Indexesconf. While options defined outside the index correspond to options in `server.conf` https://docs.splunk.com/Documentation/Splunk/latest/admin/Serverconf, note that currently only `[cachemanager]` stanza is supported. This is an example config that defines cache settings and retention policy: ``` smartstore: cachemanager: