Page 1 of 1

MSSQL Server Log Monitoring

Posted: Mon Mar 01, 2021 4:04 pm
by JuriB
Hello,
a customer we're working for needs to monitor Microsoft SQL Server Logs for specific events, range of errors and keywords.
As this is not a Windows log, it cannot be parsed with the log-specific plugin. Nor it is a simple text log.
Moreover a simple query would not keep track of already sent notification, so that will send the same event until the log rotate
Is there a way to do a smart parsing of the SQL Server logs?

Thanks and best regards
Juri

Re: MSSQL Server Log Monitoring

Posted: Tue Mar 02, 2021 5:53 pm
by benjaminsmith
Hi Juri,

Are the logs available in the Windows Event Logs or directly from a query? Those are the two other methods in XI that may work (besides a log-specific plugin), and there are wizards in the XI to help set up these types of checks. Please let me know.

Beyond that, we do have a dedicated product for log monitoring called Nagios Log Server, that would have more robust features for parsing the logs themselves.

https://www.nagios.com/products/nagios-log-server/

Benjamin

Re: MSSQL Server Log Monitoring

Posted: Wed Mar 03, 2021 9:44 am
by JuriB
Hi Benjamin,
thanks for your reply!
Unfortunately SQL server logs are not available under Windows Event Log.
They can only be accessed by a specific application o by a sql query.
I've checked the XI sql query wizard, but as far as i can see it can only compare the query result with the values you're expecting.
SQL logs look lithe this:
sqllog.JPG
We need to look for and notify, as example, all error 17345, 908 and 1492, and anyway everything with a severity of 16 or upper.
Can the XI sql query do this?
Last but not least, the notification should no been sent twice for the same event:
If we have an error 17054 at 15:03:28, and the check is performed every 5 minutes, that specific event should be notified only by the 15:05:00 check and not again by the following check at 15:10:00
Thanks for you support
Best regards
Juri

Re: MSSQL Server Log Monitoring

Posted: Thu Mar 04, 2021 8:22 am
by scottwilkerson
Locking thread as there is a duplicate ticket open