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

!~

The !~ (not equals) operator applies a case-insensitive string filter and excludes events that match.

The following table provides a comparison of the equal operators:

OperatorDescriptionCase-SensitiveExample (yields true)
==EqualYes"aBc" == "aBc"
!=Not equalYes"abc" != "ABC"
=~EqualNo"abc" =~ "ABC"
!~Not equalNo"aBc" !~ "xyz"

When comparing values of different types, Cribl Search performs automatic type conversion wherever possible, giving priority to number comparisons.

For more details on comparison rules, see:

Syntax

    Scope | where Field !~ (Expression, ... )

Arguments

  • Scope: The input tabular result set to filter.
  • Field: The field to filter.
  • Expression: An expression used to filter.

Example

dataset=myDataset 
| summarize event_count=count() by State
| where (State !~ "texas") and (event_count > 3000)
| project State, event_count