Go to All Forums

SQL Log File size

Hi, SQL Log file size can be queried using API? If yes, is there an example.

From this link: www.site24x7.com/help/server-metrics/sql-server-monitor.html

It has this details, can query those logs via API?

Log File Size (GB) The cumulative size of all the log files in the database
Log File Used Size (GB) The cumulative used size of all the log files in the database

Thanks for any ideas and help.

Like (2) Reply
Replies (1)

Re: SQL Log File size


Yes, you can get the metrics 'log file size' and 'log file used size' using the below APIs:

Log File Size (GB)


Log File Used Size (GB)


Note: To get monitor ID of that respective monitor, please refer our API documentation.





Like (0) Reply

Was this post helpful?