Sentinel KQL | Use contains with a Watchlist

carmike 6 Reputation points
2022-07-29T18:47:58.767+00:00

Is it possible to use contains on a Watchlist?

Like:

let DataOfInterest = (_GetWatchlist('DataWatchlist')| project SearchKey);

| where FieldOfInterest contains (DataOfInterest )

Microsoft Sentinel
Microsoft Sentinel
A scalable, cloud-native solution for security information event management and security orchestration automated response. Previously known as Azure Sentinel.
976 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. carmike 6 Reputation points
    2022-08-01T19:53:14.593+00:00

    Figured out the problem.
    I removed the \ escapes from the directories on the Watchlist.
    So now the Watchlist entries look like \directory01\conf\fileA.ini
    Results are now filtered as expected.

    1 person found this answer helpful.
    0 comments No comments

  2. Clive Watson 5,711 Reputation points MVP
    2022-08-01T10:05:43.41+00:00

    You can use "in" instead?

    let DataOfInterest = _GetWatchlist("ComputerList") | project SearchKey;  
    Heartbeat  
    | where Computer in (DataOfInterest )  
    | summarize count() by Computer