On DataDog log search, I want to search for logs with empty string for a specific facet, e.g. logs with userId is empty. @userId:''
, @userId:""
, -@userId:*
non worked.
Asked
Active
Viewed 9,689 times
2 Answers
20
this seem to be working:
-@userId:*?*
do not forget the minus at the start.

hevi
- 2,432
- 1
- 32
- 51
-
2For future searchers: I was hoping to use this to find instances of my array facet where the array is null/empty, but no luck. thanks for sharing anyway, what a strange wrinkle! – cincodenada Nov 23 '21 at 20:07