Skip to content

Commit a2731de

Browse files
committed
fix null query filter conversion from sigma to query string query
Signed-off-by: Surya Sashank Nistala <[email protected]>
1 parent 0db4dd3 commit a2731de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/opensearch/securityanalytics/rules/backend/OSQueryBackend.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public OSQueryBackend(Map<String, String> fieldMappings, boolean collectErrors,
131131
this.reEscapeChar = "\\";
132132
this.reExpression = "%s: /%s/";
133133
this.cidrExpression = "%s: \"%s\"";
134-
this.fieldNullExpression = "%s: null";
134+
this.fieldNullExpression = "%s: (NOT [* TO *])";
135135
this.unboundValueStrExpression = "%s: \"%s\"";
136136
this.unboundValueNumExpression = "%s: %s";
137137
this.unboundWildcardExpression = "%s: %s";

0 commit comments

Comments
 (0)