Skip to content

Commit ea9f56d

Browse files
authored
Merge pull request #211 from splunk/fix_label_length
make labels a bit shorter
2 parents b0cb4b9 + 9c90f1d commit ea9f56d

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

contentctl/output/templates/savedsearches_detections.j2

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,7 @@ cron_schedule = {{ detection.deployment.scheduling.cron_schedule }}
5757
dispatch.earliest_time = {{ detection.deployment.scheduling.earliest_time }}
5858
dispatch.latest_time = {{ detection.deployment.scheduling.latest_time }}
5959
action.correlationsearch.enabled = 1
60-
{% if detection.status == "deprecated" %}
61-
action.correlationsearch.label = {{APP_NAME}} - Deprecated - {{ detection.name }} - Rule
62-
{% elif detection.status == "experimental" %}
63-
action.correlationsearch.label = {{APP_NAME}} - Experimental - {{ detection.name }} - Rule
64-
{% elif detection.type | lower == "correlation" %}
65-
action.correlationsearch.label = {{APP_NAME}} - RIR - {{ detection.name }} - Rule
66-
{% else %}
6760
action.correlationsearch.label = {{APP_NAME}} - {{ detection.name }} - Rule
68-
{% endif %}
6961
action.correlationsearch.annotations = {{ detection.annotations | tojson }}
7062
action.correlationsearch.metadata = {{ detection.getMetadata() | tojson }}
7163
{% if detection.deployment.scheduling.schedule_window is defined %}

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "contentctl"
3-
version = "4.2.1"
3+
version = "4.2.2"
44
description = "Splunk Content Control Tool"
55
authors = ["STRT <[email protected]>"]
66
license = "Apache 2.0"

0 commit comments

Comments
 (0)