hevi
hevi

Reputation: 2716

DataDog Log Search empty string facet

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

Answers (3)

Thiago Mata
Thiago Mata

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

steel
steel

Reputation: 12520

This may have been patched. -@userId:* is working for me, now.

Upvotes: 15

hevi
hevi

Reputation: 2716

this seem to be working: -@userId:*?* do not forget the minus at the start.

Upvotes: 29

Related Questions