Home All Groups Group Topic Archive Search About
Author
19 Nov 2007 9:51 PM
Hassan
Can someone send me the command to import the application and system log of
the eventlogs into SQL Server for say 2 different servers ?

Does the command have to run every few mins ? How does it handle
duplicates,etc. ? I would like to have the logs in the database no later
than say 15 mins from the time they make it in the respective log. But I
dont know how log parser is smart enough to do that unless I run it every 5
mins but then again, what does it scan for and only ensures it does not
insert duplicates

Thanks

Author
21 Nov 2007 2:31 AM
jason
You have to write something custom to do this. You can do it with an SSIS
WMI data reader task. The class to look at is win32_ntlogevent.

Other options include powershell to from xp_cmdshell or a CLR function to
get to WMI.

Show quote
"Hassan" <has***@test.com> wrote in message
news:ut0pOZvKIHA.5360@TK2MSFTNGP03.phx.gbl...
> Can someone send me the command to import the application and system log
> of the eventlogs into SQL Server for say 2 different servers ?
>
> Does the command have to run every few mins ? How does it handle
> duplicates,etc. ? I would like to have the logs in the database no later
> than say 15 mins from the time they make it in the respective log. But I
> dont know how log parser is smart enough to do that unless I run it every
> 5 mins but then again, what does it scan for and only ensures it does not
> insert duplicates
>
> Thanks
>

AddThis Social Bookmark Button