How to Enable Line Numbers in Azure Sentinel to Aid Quicker Debugging of KQL Queries

The Azure Monitor team has rolled out a new capability to everyone to help enable quicker debugging for KQL queries in the Log Analytics workspace. When writing queries now and you receive the standard error that includes the line number and position, you’ll be able to identify the actual line more easily.

For those used to doing it the old way, or for those where the line numbers are just clutter, the feature is easy to turn on and off.

Open the Settings panel by clicking on the Settings cog icon and select the switch to turn row numbers off and on.

Enable line numbers in the query window

[Want to discuss this further? Hit me up on Twitter or LinkedIn]

Authors