Skip to content

Commit a38b195

Browse files
Skip internal fields on validation
1 parent bf3955d commit a38b195

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

detection_rules/rule_validators.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,8 +683,12 @@ def validate_columns_index_mapping(
683683

684684
for column in query_columns:
685685
column_name = column["name"]
686+
# Skip Dynamic fields
686687
if column_name.startswith(("Esql.", "Esql_priv.")):
687688
continue
689+
# Skip internal fields
690+
if column_name in ("_id", "_index", "_type"):
691+
continue
688692
column_type = column["type"]
689693

690694
# Check if the column exists in combined_mappings or a valid field generated from a function or operator

0 commit comments

Comments
 (0)