Home / Search/ Language Reference/ Operators/ String Operators/!has

!has

The !has operator applies a case-insensitive string filter and excludes events that match.

The following table compares the has operators using these abbreviations:

  • RHS = right-hand side of the expression
  • LHS = left-hand side of the expression
OperatorDescriptionCase-SensitiveExample (yields true)
hasRight-hand-side (RHS) is a whole term in left-hand-side (LHS)No"North America" has "america"
!hasRHS isn’t a full term in LHSNo"North America" !has "amer"
has_csRHS is a whole term in LHSYes"North America" has_cs "America"
!has_csRHS isn’t a full term in LHSYes"North America" !has_cs "amer"

Syntax

    Scope | where Field !has String

Arguments

  • Scope: The input tabular result set to filter.
  • Field: The field to filter.
  • String: The string used to filter.

Example

dataset=myDataset 
| summarize event_count=count() by State
| where State !has "New"