Re: Help with a log parser

Forums

Forums, discussions, and Q&A for all products.

Help with a log parser

Answered (Not Verified) This question has suggested answer(s)

I have a multi-line log file that I am trying to parse but I am having some issues with the parser template.  Here is an example of the log file:

 

2012-01-15 @ 04:22 SQL Error encountered.
Application: BRMService
Error State: S1T00
Vendor: Microsoft
Driver: ODBC SQL Server Driver
Error: Timeout expired
Last SQL String: SELECT COUNT(*) FROM master.dbo.sysdatabases WHERE name = 'BusRuleMonitor'
Last ODBC Command: Function: SQLDriverConnect

2012-01-27 @ 23:10 SQL Error encountered.
Application: BRMService
Error State: 08001
Vendor: Microsoft
Driver: SQL Server Native Client 10.0
Error: Named Pipes Provider: Could not open a connection to SQL Server [2].
Last ODBC Command: Function: SQLDriverConnect

The only thing I am interested in monitoring is the Error State.  I will monitor that error state and if it matches a certain value the alarm will be raised.  I am struggling with creating a template for this parser. I was thinking that just Error State: $errorstate$ would do the trick, but i can't seem to get it to work.  Any help would be appreciated.

 

Thanks

All Replies
Page 1 of 1 (4 items)