Idea ID: 2698004

Discovering SQL Error log location

Status : Waiting for Votes
Waiting for Votes
See status update history
over 1 year ago

The current MSSQL discovery pattern cannot locate MSSQL error logs' location. These logs are crucial for our monitoring team to create monitoning templates that will be used for our customers when they want their MSSQL servers monitored. Someone from the MSSQL team has created a sql command that he hopes will help in expanding the current MSSQL discovery pattern to find the location of the error log files.

Here's the sql command from the MSSQL team member:
value_data AS [Errorlog directory]
FROM sys.dm_server_registry
registry_key LIKE N'%MSSQLServer\Parameters' and convert(varchar,value_data) like '-e%'

This query will provide output as follows –
Errorlog directory

They need to truncate first 2 character i.e. “-e” which will give directory location.
Not quite sure where this directory can be placed once this has been added and we can discover the error log location.


  • Thank you for sharing your idea! It’s open for comments and kudos, and we’re looking forward to input from the community. Once there is enough community traction, it will be further reviewed by the product team