Skip to content

Commit f6fc1c9

Browse files
Add better comments
1 parent b8df2ac commit f6fc1c9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

detection_rules/index_mappings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,8 @@ def get_filtered_index_schema(
285285
filtered_index_lookup = {
286286
key.replace("logs-endpoint.", "logs-endpoint.events."): value for key, value in filtered_index_lookup.items()
287287
}
288+
# This overwrites any conflicts with non-ecs preferring what is defined in custom mappings
289+
# This can be done safely as we have a specific non-ecs-index that will also be included with only non-ecs mappings
288290
filtered_index_lookup.update(non_ecs_mapping)
289291
filtered_index_lookup.update(custom_mapping)
290292

0 commit comments

Comments
 (0)