Home / Search/ Language Reference/ Operators/ String Operators/startswith_cs

startswith_cs

The startswith_cs operator applies a case-sensitive string starting sequence filter and returns events that match.

The following table compares the startswith operators using these abbreviations:

  • RHS = right-hand side of the expression
  • LHS = left-hand side of the expression
OperatorDescriptionCase-SensitiveExample (yields true)
startswithRHS is an initial subsequence of LHSNo"Fabrikam" startswith "fab"
!startswithRHS isn’t an initial subsequence of LHSNo"Fabrikam" !startswith "kam"
startswith_csRHS is an initial subsequence of LHSYes"Fabrikam" startswith_cs "Fab"
!startswith_csRHS isn’t an initial subsequence of LHSYes"Fabrikam" !startswith_cs "fab"

Syntax

    Scope | where Field startswith_cs 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 startswith_cs "Lo"