Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase ««12345»»»

How to centralize your SQL Server Event Logs. Expand / Collapse
Author
Message
Posted Monday, November 8, 2010 5:42 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: 2 days ago @ 1:47 PM
Points: 123, Visits: 514
Geoff A (11/8/2010)
renasoursou, try this;

create an alias for RLDB2,4949\RLDB2_05 and call it something like "monitor"

then change Data Source=RLDB2,4949\RLDB2_05 to Data Source=monitor


how/where do you define this alias?
Post #1017117
Posted Monday, November 8, 2010 5:46 AM


Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: Yesterday @ 4:26 AM
Points: 514, Visits: 1,728
peleg (11/8/2010)
Geoff A (11/8/2010)
renasoursou, try this;

create an alias for RLDB2,4949\RLDB2_05 and call it something like "monitor"

then change Data Source=RLDB2,4949\RLDB2_05 to Data Source=monitor


how/where do you define this alias?


http://msdn.microsoft.com/en-us/library/ms190445.aspx
Post #1017120
Posted Monday, November 8, 2010 5:48 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Friday, December 20, 2013 1:59 AM
Points: 36, Visits: 273
Its running with the allias name. Thanks a lot and its really a great and usefull Article!!!
Post #1017121
Posted Monday, November 8, 2010 8:35 AM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Thursday, August 21, 2014 12:08 PM
Points: 1,414, Visits: 4,540
nice article

i've been doing something similar for 2 years and might check this out to see if it's faster than mine. in my case i run the VB from each server and dump to a central SQL server. i have a staging table for each server and there is a job that runs every hour to delete old data from the main tables and copy data from the staging tables and then truncate them. and i wrote a bunch of reports over the last year to track locked out accounts, AD Group changes, etc. each report has a SSRS subscription to email it to the right people

i've wanted to change over to powershell, but haven't found anything where it says how to dump the data directly to SQL

to make sure data is being imported i have a report that i check once a week that shows me the server name and the latest app/security log dates in the database for each server


https://plus.google.com/100125998302068852885/posts?hl=en
http://twitter.com/alent1234
x-box live gamertag: i am null
[url=http://live.xbox.com/en-US/MyXbox/Profile[/url]
Post #1017230
Posted Monday, November 8, 2010 8:39 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Tuesday, August 26, 2014 11:00 AM
Points: 141, Visits: 417
Great post!
I usually did the same way before SQL Server 2008.

Now I've implemented central monitor solution using PowerShell and SQL Server central management feature.

For security reason I would try not using VBS. Using native SQL Server central management also enables you to manage and configure in one place.

my two cents.
Post #1017234
Posted Monday, November 8, 2010 8:42 AM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Thursday, August 21, 2014 12:08 PM
Points: 1,414, Visits: 4,540
GNUZEN (11/8/2010)
Great post!
I usually did the same way before SQL Server 2008.

Now I've implemented central monitor solution using PowerShell and SQL Server central management feature.

For security reason I would try not using VBS. Using native SQL Server central management also enables you to manage and configure in one place.

my two cents.


with SQL 2008 can you import event logs from non-sql servers into a database?


https://plus.google.com/100125998302068852885/posts?hl=en
http://twitter.com/alent1234
x-box live gamertag: i am null
[url=http://live.xbox.com/en-US/MyXbox/Profile[/url]
Post #1017236
Posted Monday, November 8, 2010 8:56 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: 2 days ago @ 1:47 PM
Points: 123, Visits: 514
vbscript is not secure enough, but powershell has it's dangerous too.
i think that doing it in PowerShell is better, if you start from Zero, beacuse it's being added more abilities all the time (while vbscript is old and not updated).

to dump data using powershell to a db, you can use a dll which will do the work for you :
Bulk import text files using .net 2.0 SqlBulkCopy class in C#
Post #1017245
Posted Monday, November 8, 2010 9:07 AM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Thursday, August 21, 2014 12:08 PM
Points: 1,414, Visits: 4,540
so you have to dump the log to a text file first and then use SSIS or bcp to import it?

https://plus.google.com/100125998302068852885/posts?hl=en
http://twitter.com/alent1234
x-box live gamertag: i am null
[url=http://live.xbox.com/en-US/MyXbox/Profile[/url]
Post #1017250
Posted Monday, November 8, 2010 9:37 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, January 13, 2012 7:06 AM
Points: 1, Visits: 54
This example seems to work a treat on two of my SQL Servers (one a 2005 box and the other a 2008 box), however I cant seem to get any events forwarding on another 2008 box.

I've enabled Event Forwarding in SQL Agent on the server and have verified the hostname and that all events are enabled but this doesnt seem to have resolved this.

Are there any common pitfulls I may have overlooked?

Thanks
Matt
Post #1017277
Posted Monday, November 8, 2010 10:01 AM


Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: Yesterday @ 4:26 AM
Points: 514, Visits: 1,728
Matt Hayes (11/8/2010)
This example seems to work a treat on two of my SQL Servers (one a 2005 box and the other a 2008 box), however I cant seem to get any events forwarding on another 2008 box.

I've enabled Event Forwarding in SQL Agent on the server and have verified the hostname and that all events are enabled but this doesnt seem to have resolved this.

Are there any common pitfulls I may have overlooked?

Thanks
Matt


Hi Matt,

more than likely, MSDTC is not configured.
On the server that IS set to forward events and it is not working, look at the application event log to confirm.
Post #1017290
« Prev Topic | Next Topic »

Add to briefcase ««12345»»»

Permissions Expand / Collapse