Re: Filter SQL Server Errorlog

From: Narayana Vyas Kondreddi (answer_me_at_hotmail.com)
Date: 08/06/04


Date: Fri, 6 Aug 2004 11:09:17 +0100

Ideally, you would have to write a program to scan the error log and prepare
the report.

Here's something undocumented, so don't count on it to work on every version
of SQL Server. The following code can look for all entries in the error that
have the word 'Login' in them.

EXEC sp_readerrorlog 1, 'G:\MSSQL\Log\errorlog', 'Login'

More info at: http://vyaskn.tripod.com/sp_readerrorlog_undocumented.htm

-- 
HTH,
Vyas, MVP (SQL Server)
http://vyaskn.tripod.com/
"Hong Wang" <HongWang@discussions.microsoft.com> wrote in message
news:148AC284-414D-4E5D-B976-0AC267089D4C@microsoft.com...
Hi,
I have a SQL Server that turned on to audit login failure. For our security
auditing purpose, I need to print out the error log that shows which user
has a login failure. But the errorlog is too long, and I need to print out a
new log every week. Is there a way that I can filter out only the login
failure records in the errorlog and print them out?
Thanks.


Relevant Pages

  • Re: create index error
    ... error log for details." ... You need to search your errorlog to find which assertion was fired. ... Microsoft SQL Server Storage Engine ...
    (microsoft.public.sqlserver.server)
  • Re: Error Log file location causing Failover failure?
    ... We have a SQL Server on a 2 node cluster. ... Like SQL was looking for the error log file on the C:\ drive ...
    (microsoft.public.sqlserver.clustering)
  • Re: Unable to connect to SQLExpress Remotely - no matter what
    ... Still no luck after as full of a reinstall as I could manage. ... Nothing to the error log. ... Another note is that I'm connecting using SQL Server Authentication. ...
    (microsoft.public.sqlserver.connect)
  • Re: Authentication problem continued
    ... the line that causes the login failure is where I try to open the ... connection to SQL Server. ... I have a SQL Server login established now and I can log in on my ... development machine but I'm getting the Anonymous login failure on my ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Authentication problem continued
    ... the line that causes the login failure is where I try to open the ... I have a SQL Server login established now and I can log in on my ... development machine but I'm getting the Anonymous login failure on my ... SQL Server is configured for Windows Authentication only and not ...
    (microsoft.public.dotnet.framework.aspnet)

Loading