473,378 Members | 1,429 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Event Log Monitoring

I would like to create a program that will monitor up to
15 different servers over a WAN link. Actually, what I am
thinking is that I will develop an application that will
be installed on each of these remote servers. This
application will do one of the following:

1) Write to a SQL Server for every entry written to a
specific log, if it is a warning or an error.

2) Run once per day and write to a SQL Server every
error/warning event since the last time it was run.

I still cannot decide which way I should go. Any
suggestions?!? If I decide to go with the second route, I
am currently using a foreach statement to cycle through
the various events. However, I would like to setup the
foreach statement to only cycle through events since a
particular date, and even then to only cycle through
errors/warnings. Does anybody know how to do this?

Thank you for your help!
Nov 15 '05 #1
2 2482
Well, it depends. The first solution would take much time, and cost more.
But this solution will be the best in case you face a problem in the middle
of a working day, so u need to look at the most recent logs. And i don't
think u'll want to look at yesterday's logs.....As for the second solution,
it's less cotly, and much faster. You can run a process to flush the logs
once per day, after the workers finish their work......But on the other
hand, if you face a problem during working hours, then you won't be able to
know the event logged until next day, or after working hours.
Another solution would be to log the events several times per day....every
hour for example......or trigger an event if the server is unused for 20
minutes for example.
So if you can guess that errors or warnings will not occur often, then use
the first solution. But if you know in advance that there will be many
errors or warnings, multiplied by 15 machines, then i would suggest either
the second option, or one of the extra ones i mentioned.
Good luck.

--
Rami Saad
Microsoft GTSC Developer support for Middle East
"Scott" <an*******@discussions.microsoft.com> wrote in message
news:12*****************************@phx.gbl...
I would like to create a program that will monitor up to
15 different servers over a WAN link. Actually, what I am
thinking is that I will develop an application that will
be installed on each of these remote servers. This
application will do one of the following:

1) Write to a SQL Server for every entry written to a
specific log, if it is a warning or an error.

2) Run once per day and write to a SQL Server every
error/warning event since the last time it was run.

I still cannot decide which way I should go. Any
suggestions?!? If I decide to go with the second route, I
am currently using a foreach statement to cycle through
the various events. However, I would like to setup the
foreach statement to only cycle through events since a
particular date, and even then to only cycle through
errors/warnings. Does anybody know how to do this?

Thank you for your help!

Nov 15 '05 #2
Thank you for your reply. That helps!

As for the last part of my email, do you know how to setup
the foreach statement to only cycle through the records
for, say, the last hour? The only examples I can find are
to cycle through the entire log. I am not sure if it
would be real effective to, every time, cycle through the
entire log just so that I can grab the last couple of
records.

Thank you.
-----Original Message-----
Well, it depends. The first solution would take much time, and cost more.But this solution will be the best in case you face a problem in the middleof a working day, so u need to look at the most recent logs. And i don'tthink u'll want to look at yesterday's logs.....As for the second solution,it's less cotly, and much faster. You can run a process to flush the logsonce per day, after the workers finish their work......But on the otherhand, if you face a problem during working hours, then you won't be able toknow the event logged until next day, or after working hours.Another solution would be to log the events several times per day....everyhour for example......or trigger an event if the server is unused for 20minutes for example.
So if you can guess that errors or warnings will not occur often, then usethe first solution. But if you know in advance that there will be manyerrors or warnings, multiplied by 15 machines, then i would suggest eitherthe second option, or one of the extra ones i mentioned.
Good luck.

--
Rami Saad
Microsoft GTSC Developer support for Middle East
"Scott" <an*******@discussions.microsoft.com> wrote in messagenews:12*****************************@phx.gbl...
I would like to create a program that will monitor up to
15 different servers over a WAN link. Actually, what I am thinking is that I will develop an application that will
be installed on each of these remote servers. This
application will do one of the following:

1) Write to a SQL Server for every entry written to a
specific log, if it is a warning or an error.

2) Run once per day and write to a SQL Server every
error/warning event since the last time it was run.

I still cannot decide which way I should go. Any
suggestions?!? If I decide to go with the second route, I am currently using a foreach statement to cycle through
the various events. However, I would like to setup the
foreach statement to only cycle through events since a
particular date, and even then to only cycle through
errors/warnings. Does anybody know how to do this?

Thank you for your help!

.

Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Daniel Bass | last post by:
hey guys. overview --------- I'm designing a messaging system that works on the principle of late binding to the I/O objects, depending on the .Net class libraries present in the local folder....
9
by: Tim D | last post by:
Hi, I originally posted this as a reply to a rather old thread in dotnet.framework.general and didn't get any response. I thought it might be more relevant here; anyone got any ideas? My...
12
by: Jack Russell | last post by:
My unstanding of all VB up to and including vb6 is that an event could not "interrupt" itself. For instance if you had a timer event containing a msgbox then you would only get one message. ...
1
by: Jason | last post by:
Given a scenario where I'm monitoring a folder, once the file has been created, I'd like to have it relocated to another folder via the File.Copy() method. My problem occurs when I paste a...
1
by: Jacand4321 | last post by:
I'm trying to audit all the database activities using Server-side trace in SQL Server 2000. Basically I need to get the login information (login Id, Login time etc) along with the name of the...
18
by: Jerry Boone | last post by:
I'm looking for a way to fire a public sub/function when a form is opened and closed - without using form level events. I have already done some extensive form work with instancing, looping...
1
by: Jo | last post by:
Hi. I have a few questions regd event monitoring. Would appreciate some assistance with this. 1. Does the event monitor only insert data into the event monitoring tables once the connection has...
1
by: Mahita | last post by:
Hi, I am coding a Windows Service in which I am using the "OnCreated" event of FileSystemWatcher class to do some processing when a new file is created in a particular folder. However I have...
1
by: =?Utf-8?B?YnJlbnQ5NjA=?= | last post by:
Environment: ASP.NET 2.0, SQL Server 2005, C#, Visual Studio 2005 In my Session_End event, I am executing a stored procedure to update a database table that is used to log user sessions. When...
1
by: brad.serbus | last post by:
I am trying to figure out a way to have health monitoring throw different Event IDs into the event log, and am having a hard time. None of the customization that I have looked through so far has...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.