The case-sensitive hassuffix_cs string operator

Learn how to use the hassuffix_cs operator to filter data with a case-sensitive suffix string.

Filters a record set for data with a case-insensitive ending string. hassuffix_cs returns true if there is a term inside the filtered string column ending with the specified string expression.

Performance tips

Syntax

T | where column hassuffix_cs ( expression )

Parameters

NameTypeRequiredDescription
Tstring✔️The tabular input whose records are to be filtered.
columnstring✔️The column by which to filter.
expressionscalar✔️The scalar or literal expression for which to search.

Returns

Rows in T for which the predicate is true.

Examples

StormEvents
| summarize event_count=count() by State
| where State hassuffix_cs "AS"
| where event_count > 2000
| project State, event_count

Output

Stateevent_count
TEXAS4701
KANSAS3166