Query Details

Track The Usage Of Specific Applications And How Often They Are Started

Query

Use Case: Monitoring and identifying the most frequently executed processes on a system for a given day.

Query:

Process
| where isnotnull(ProcessName) and isnotnull(StartDateTime) // Ensure fields are not null
| summarize Count = count() by ProcessName, bin(StartDateTime, 1d) // Aggregate counts by day and ProcessName
| order by Count desc
| project ProcessName, Count

Explanation

This query is used to monitor and identify the processes that are executed most frequently on a system for a specific day. It filters out any null values in the ProcessName and StartDateTime fields, then groups the processes by name and the date they were started. The results are then sorted in descending order based on the count of each process, and only the ProcessName and Count columns are displayed.

Details

Ugur Koc profile picture

Ugur Koc

Released: February 4, 2024

Tables

Process

Keywords

Process,StartDateTime,Count

Operators

whereisnotnullsummarizecountbybinorder bydescproject

Actions