Learn how to use top to rank security telemetry and quickly identify the most active users, IPs, devices, senders and domains.
Ranking high-volume activity
Finding noisy investigation leads
Combining summarize and top
📊 The loudest value is not always malicious, but it is often worth checking. top helps defenders quickly rank telemetry so the busiest accounts, IP addresses, devices and senders stand out.
Count sign-ins by user over the last 24 hours, then show the 10 users with the highest sign-in volume.
Understanding top
top sorts results by the column you choose and returns only the number of rows you request.
top 10Return only the highest 10 rows based on the ranking column.
by SignInCountRank the results using the SignInCount column created by summarize.
Great after summarizetop is often most useful after you have counted or grouped activity.
Finding high-volume IP addresses
Repeated sign-ins from the same IP address may be normal infrastructure, a VPN, a proxy, or something more suspicious. top helps you quickly see which IP addresses appear the most.
Count email events by sender and show the 15 senders with the highest email volume.
Finding top devices by process activity
Endpoint investigations can produce large volumes of process telemetry. Ranking devices by process activity can help identify noisy endpoints, scripted activity or devices involved in unusual behaviour.
Endpoint volumeIdentify devices generating unusually high process event counts.
Drill deeperAfter finding a device, pivot into FileName, command line and initiating process fields.
Context mattersBusy servers and management tools may be expected, but unknown spikes need review.
Using top with time windows
top becomes even more useful when combined with earlier lessons. You can group activity by time with bin(), count it with summarize, then rank the busiest windows.
Find the 10 busiest 15-minute windows for failed sign-in activity during the last 24 hours.
top vs order by
top and order by are related, but they are not used for exactly the same purpose.
Use top when asking:What are the highest-ranking results, and I only want a limited number of rows?
Use order by when asking:Sort all results so I can read them in a specific order.
Investigation tipUse summarize first, then top to quickly identify the busiest values.
Beginner mistakes with top
top is simple, but it works best when the ranking column is meaningful.
Using top before countingIf you want high-volume users or IPs, create a count first with summarize.
Ranking the wrong columnMake sure top is ranking by the column that answers your investigation question.
Ignoring normal behaviourThe busiest result may be legitimate. Always compare with business context.
Investigator mindset
High volume does not automatically mean compromise.
But it does tell you where to look first.
A noisy account, a repeated IP address, a dominant sender or a device producing unusual activity may reveal the next useful pivot in the investigation.
What is generating the most activity?Use top to quickly identify the busiest values in the dataset.
Is the volume expected?Compare the result with known systems, normal users and expected business patterns.
What should I investigate next?Use high-volume results as pivots for deeper KQL hunting.
The logs already knew what was making the most noise. top helps defenders rank activity quickly and decide where the next investigation pivot should begin.
Develop IT. Protect IT.GEMXIT PTY LTD | GEMXIT UK LTD
Using top to Find High-Volume Activity in KQL
Agent Foskett Academy Lesson 10 teaches defenders how to use top inside Microsoft Defender XDR and Microsoft Sentinel investigations to rank high-volume users, devices, IP addresses, sender domains and suspicious activity.
Learn KQL top for Microsoft Defender XDR
KQL top helps defenders quickly identify the busiest accounts, IP addresses, devices, senders, domains and investigation pivots across Microsoft security telemetry.
KQL High-Volume Activity Analysis for Security Investigations
High-volume activity analysis helps defenders investigate SigninLogs, EmailEvents, DeviceProcessEvents, failed sign-ins, phishing campaigns, endpoint activity, user accounts, sender domains, IP addresses and Microsoft security telemetry.