Skip to content

Commit b0dd94f

Browse files
authored
Merge branch 'develop' into release/801
2 parents 8848fd7 + a6ff70b commit b0dd94f

File tree

2 files changed

+35
-16
lines changed

2 files changed

+35
-16
lines changed

docs/ADVANCED.md

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -209,17 +209,35 @@ Here's an overview of what this looks like if you want to persist *all* your ind
209209
---
210210
splunk:
211211
smartstore:
212-
- indexName: default
213-
remoteName: remote_store
214-
scheme: s3
215-
remoteLocation: <bucket-name>
216-
s3:
217-
access_key: <access_key>
218-
secret_key: <secret_key>
219-
endpoint: http://s3-us-west-2.amazonaws.com
212+
index:
213+
- indexName: default
214+
remoteName: remote_store
215+
scheme: s3
216+
remoteLocation: <bucket-name>
217+
s3:
218+
access_key: <access_key>
219+
secret_key: <secret_key>
220+
endpoint: http://s3-us-west-2.amazonaws.com
220221
...
221222
```
222223

224+
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:
225+
```
226+
smartstore:
227+
cachemanager:
228+
max_cache_size: 500
229+
max_concurrent_uploads: 7
230+
index:
231+
- indexName: custom_index
232+
remoteName: my_storage
233+
scheme: http
234+
remoteLocation: my_storage.net
235+
maxGlobalDataSizeMB: 500
236+
maxGlobalRawDataSizeMB: 200
237+
hotlist_recency_secs: 30
238+
hotlist_bloom_filter_recency_hours: 1
239+
```
240+
223241
## Using deployment servers
224242
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.
225243

tests/test_docker_splunk.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2170,14 +2170,15 @@ def test_compose_1cm_smartstore(self):
21702170
assert password
21712171
# Add a custom conf file
21722172
output = re.sub(r' smartstore: null', r''' smartstore:
2173-
- indexName: default
2174-
remoteName: remote_vol
2175-
scheme: s3
2176-
remoteLocation: smartstore-test
2177-
s3:
2178-
access_key: abcd
2179-
secret_key: 1234
2180-
endpoint: https://s3-region.amazonaws.com''', output)
2173+
index:
2174+
- indexName: default
2175+
remoteName: remote_vol
2176+
scheme: s3
2177+
remoteLocation: smartstore-test
2178+
s3:
2179+
access_key: abcd
2180+
secret_key: 1234
2181+
endpoint: https://s3-region.amazonaws.com''', output)
21812182
# Write the default.yml to a file
21822183
with open(os.path.join(FIXTURES_DIR, "default.yml"), "w") as f:
21832184
f.write(output)

0 commit comments

Comments
 (0)