Skip to content

Commit 569a5e9

Browse files
authored
Merge pull request #421 from splunk/default_search_stanza
Default Stanza to prevent issues post-search-removal
2 parents 6ccfcbc + bf907ce commit 569a5e9

3 files changed

Lines changed: 13 additions & 17 deletions

File tree

contentctl/output/templates/savedsearches_detections.j2

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
### {{app.label}} DETECTIONS ###
22

3+
[default]
4+
disabled = 1
5+
description = "This search was removed in a previous release, or is otherwise not present."
6+
search = | makeresults | eval text = "This search was removed in a previous release, or is otherwise not present."
7+
38
{% for detection in objects %}
49
[{{ detection.get_conf_stanza_name(app) }}]
510
action.escu = 0
611
action.escu.enabled = 1
7-
description = {{ detection.status_aware_description | escapeNewlines() }}
12+
description = {{ detection.status_aware_description | escapeNewlines() }}
813
action.escu.mappings = {{ detection.mappings | tojson }}
914
action.escu.data_models = {{ detection.datamodel | tojson }}
1015
action.escu.eli5 = {{ detection.status_aware_description | escapeNewlines() }}

contentctl/templates/app_template/metadata/default.meta

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,9 @@ export = system
66
[savedsearches]
77
owner = admin
88

9-
## Correlation Searches
10-
[correlationsearches]
11-
access = read : [ * ], write : [ * ]
12-
13-
[governance]
14-
access = read : [ * ], write : [ * ]
15-
16-
## Managed Configurations
17-
[managed_configurations]
18-
access = read : [ * ], write : [ * ]
19-
20-
## Postprocess
21-
[postprocess]
22-
access = read : [ * ], write : [ * ]
23-
9+
## DO NOT EXPORT THE [default] stanza, and the [default] stanza alone.
10+
## Because this comes later in the default.meta file, it overrides the
11+
## export = system for [] above.
12+
## We MAY want to consider change the access, like making this stanza read-only or similar
13+
[savedsearches/default]
14+
export = none

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[tool.poetry]
22
name = "contentctl"
33

4-
version = "5.5.10"
4+
version = "5.5.11"
55

66
description = "Splunk Content Control Tool"
77
authors = ["STRT <research@splunk.com>"]

0 commit comments

Comments
 (0)