Skip to content

Commit

Permalink
Merge pull request #211 from splunk/fix_label_length
Browse files Browse the repository at this point in the history
make labels a bit shorter
  • Loading branch information
patel-bhavin authored Jul 30, 2024
2 parents b0cb4b9 + 9c90f1d commit ea9f56d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions contentctl/output/templates/savedsearches_detections.j2
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,7 @@ cron_schedule = {{ detection.deployment.scheduling.cron_schedule }}
dispatch.earliest_time = {{ detection.deployment.scheduling.earliest_time }}
dispatch.latest_time = {{ detection.deployment.scheduling.latest_time }}
action.correlationsearch.enabled = 1
{% if detection.status == "deprecated" %}
action.correlationsearch.label = {{APP_NAME}} - Deprecated - {{ detection.name }} - Rule
{% elif detection.status == "experimental" %}
action.correlationsearch.label = {{APP_NAME}} - Experimental - {{ detection.name }} - Rule
{% elif detection.type | lower == "correlation" %}
action.correlationsearch.label = {{APP_NAME}} - RIR - {{ detection.name }} - Rule
{% else %}
action.correlationsearch.label = {{APP_NAME}} - {{ detection.name }} - Rule
{% endif %}
action.correlationsearch.annotations = {{ detection.annotations | tojson }}
action.correlationsearch.metadata = {{ detection.getMetadata() | tojson }}
{% if detection.deployment.scheduling.schedule_window is defined %}
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "contentctl"
version = "4.2.1"
version = "4.2.2"
description = "Splunk Content Control Tool"
authors = ["STRT <[email protected]>"]
license = "Apache 2.0"
Expand Down

0 comments on commit ea9f56d

Please sign in to comment.