Reputation: 2716
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.
Upvotes: 23
Views: 21893
Reputation: 2959
If you are searching for tags, then ! mytag:
works. For example
sum:my.friends{$env , $city, ! name:} by {name}.as_count()
Will filter out the friends without name.
Upvotes: 0
Reputation: 2716
this seem to be working:
-@userId:*?*
do not forget the minus at the start.
Upvotes: 29