GitHubContribute in GitHub: Edit online

has_all operator

Filters a record set for data with one or more case-insensitive search strings. has searches for indexed terms, where a term is three or more characters. If your term is fewer than three characters, the query scans the values in the column, which is slower than looking up the term in the term index.

For more information about other operators and to determine which operator is most appropriate for your query, see datatype string operators.

Performance tips

Performance depends on the type of search and the structure of the data.

For faster results, use the case-sensitive version of an operator, for example, has_cs, not has.


T | where Column has_all (list of scalar expressions)
T | where Column has_all (tabular expression)


  • T: Tabular input whose records are to be filtered.
  • Column: Column to filter.
  • list of expressions: Comma separated list of tabular, scalar, or literal expressions.
  • tabular expression: Tabular expression that has a set of values (if expression has multiple columns, the first column is used). Currently not supported.


Rows in T for which the predicate is true

  • The expression list can produce up to 256 values.
  • For tabular expressions, the first column of the result set is selected.


Use has_all operator with a list

    | project original_time, data_source_name, name
    //--- Search for the last 5 mins of data and events that contain all the strings specified in the list 
    | where original_time > now(-5m) and name has_all ("login", "failed")
    | take 1


original_time data_source_name name
2023-04-09T21:31:24.620Z microsoftWindowsSource2 Failed domain controller login attempt per expired credentials