You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/xdr/features/investigate/sol_how_to_guides.md
+71Lines changed: 71 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -275,6 +275,77 @@ SOL Datasets allow you to import CSV files and use them in your queries. This is
275
275
For the full guide on importing CSVs, multi-tenancy rules, and advanced query patterns, see the dedicated [SOL Datasets](sol_datasets.md) page.
276
276
277
277
278
+
## How to check for non-null properties
279
+
280
+
Many event fields are optional and may be absent from some records. Use `!= null` to keep only rows where a field is present, or `== null` to find rows where a field is missing.
281
+
282
+
### Filter out rows with a missing field
283
+
284
+
=== "Query"
285
+
286
+
```shell
287
+
events
288
+
| where timestamp > ago(24h) and user.name != null
Copy file name to clipboardExpand all lines: docs/xdr/features/investigate/sol_ref_operators.md
+42Lines changed: 42 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -160,6 +160,48 @@ Use the `where` operator to filter rows by a list of conditions. Use parenthesis
160
160
| 2026-03-26T14:20:15.441Z | Android |
161
161
| 2026-03-26T14:19:47.883Z | Mac |
162
162
163
+
### Checking for non-null properties
164
+
165
+
Many event fields are optional and may not be present in every event. Use `!= null` to keep only rows where a field has a value, or `== null` to find rows where the field is absent.
166
+
167
+
!!! example "Retrieve events where `user.name` is present"
168
+
169
+
=== "Query"
170
+
171
+
``` shell
172
+
events
173
+
| where timestamp > ago(24h) and user.name != null
0 commit comments