Skip to content

Commit b3e7330

Browse files
committed
more progess on drilldown updates
1 parent 81d01da commit b3e7330

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

contentctl/actions/detection_testing/infrastructures/DetectionTestingInfrastructure.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1180,6 +1180,7 @@ def retry_search_until_timeout(
11801180
return
11811181

11821182
def delete_attack_data(self, attack_data_files: list[UnitTestAttackData]):
1183+
return
11831184
for attack_data_file in attack_data_files:
11841185
index = attack_data_file.custom_index or self.sync_obj.replay_index
11851186
host = attack_data_file.host or self.sync_obj.replay_host

contentctl/objects/drilldown.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from pydantic import BaseModel, Field
22
class Drilldown(BaseModel):
33
name: str = Field(...,min_length=5)
4-
search: str = Field(..., description="The text of a drilldown search. This must be valid SPL." min_length=1)
4+
search: str = Field(..., description="The text of a drilldown search. This must be valid SPL.", min_length=1)
55
earliest_offset:str = "$info_min_time$"
66
latest_offset:str = "$info_max_time$"

contentctl/output/templates/savedsearches_detections.j2

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,13 @@ quantity = 0
108108
realtime_schedule = 0
109109
is_visible = false
110110
search = {{ detection.search | escapeNewlines() }}
111-
111+
{% if detection.tags.drilldown%}
112+
action.notable.param.drilldown_name = {{ detection.tags.drilldown.name }}
113+
action.notable.param.drilldown_search = {{ detection.tags.drilldown.search | escapeNewlines()}}
114+
action.notable.param.drilldown_earliest_offset = {{ detection.tags.drilldown.earliest_offset }}
115+
action.notable.param.drilldown_latest_offset = {{ detection.tags.drilldown.latest_offset }}
116+
{% endif %}
112117
{% endif %}
118+
113119
{% endfor %}
114120
### END {{ APP_NAME }} DETECTIONS ###

0 commit comments

Comments
 (0)