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

!hassuffix

The !hassuffix operator applies a case-insensitive ending string filter and excludes events that match. Any of the words in the string can have the suffix.

The following table compares the hassuffix operators using these abbreviations:

  • RHS = right-hand side of the expression
  • LHS = left-hand side of the expression
OperatorDescriptionCase-SensitiveExample (yields true)
hassuffixRHS is a term suffix in LHSNo"North America" hassuffix "ica"
!hassuffixRHS isn’t a term suffix in LHSNo"North America" !hassuffix "americ"
hassuffix_csRHS is a term suffix in LHSYes"North America" hassuffix_cs "ica"
!hassuffix_csRHS isn’t a term suffix in LHSYes"North America" !hassuffix_cs "icA"

Syntax

    Scope | where Field !hassuffix Expression

Arguments

  • Scope: The input tabular result set to filter.
  • Field: The field to filter.
  • Expression: The scalar or literal expression to search.

Example

dataset=myDataset 
| summarize event_count=count() by State
| where State !hassuffix "A"