473,626 Members | 3,276 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2499
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*******@disc ussions.microso ft.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*******@disc ussions.microso ft.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
3424
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. I may have an output File.DLL, and ODBC.DLL, that instantiate an abstract parent to stream data i receive... an input .DLL allows data to be streamed
9
3198
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 questions are below... "David Good" wrote: > We have a network running both Win2k and Win2k3 webservers and our web sites > reside on a UNC network share that happens to be a Network Appliance NAS.
12
4129
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. However in vb.net you get continual messages (even setting the system modal property). Firstly, are these two assumptions right and if so what is the approved
1
1973
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 600mb+ file into the folder I'm monitoring. I use this magnitude of a size in order to guarantee it'll work for smaller files. The "created" event occurs before the file is actually completely copied into the folder, so when I try to do File.Copy(),...
1
3032
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 database.Can some one suggest a way to do that? Thanks in advance. J
18
2332
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 through the forms collection, bringing forms to the front with API via hWnd, et.. and so on. The problem is that users are loosing windows behind others and I thought I would put a list together on an existing left handed menu of (i.e.) "My open...
1
1992
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 been disconnected? sometimes when i select from the tables the data does not show current connections, only when i use the FLUSH command the data is updated. so, is my understanding correct? thanks. 2. Can we activate and deactivate the event...
1
2561
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 encountered the following issue in the "OnCreated" event of FileSystemWatcher class. Whenever a file is copied from a different folder (like network share) and pasted to the monitoring folder and this copy & paste process takes time, even before the...
1
6917
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 the user sessions time out, the Session_End event fires successfully. The stored procedure executes successfully, and I can see the updated data in the database just as I would expect. Nonetheless, an exception is being generated by the code...
1
2990
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 been helpful, yet. As an example, here's a text copy of a typical unhandled exception from the event log: Event Type: Warning Event Source: ASP.NET 2.0.50727.0
0
8269
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8203
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8711
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8642
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8512
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7203
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5576
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4206
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1815
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.