Error log Monitoring using asp.net window service with timer using Mom alerts concept

coder rock 436 Reputation points
2023-07-27T19:21:32.0966667+00:00

How to implement Mom Alerts concept for Error log Monitoring using C# asp.net window service with timer. I have plan to create one window service with timer for every 5 minutes using asp.net c# for error log monitoring. I am giving one example why I am implementing this concept suppose one login log table is there in my application since 2 hours no buddy is login then I need to get alert of this.

Currently I am storing my data into SQL server and My application made using asp.net web Api with angular.

My doubt is how to start this concept. Please suggest and give some sample code to achieve my requirement.

My doubt is how to start this concept need sample code

I have found some reference but not sure about this

There are tons of solutions like MS MOM, Tivoli, CA Unicenter, HP OpenView, and even NagIOS that you could use for this.

Reference URL : https://stackoverflow.com/questions/926333/exception-handling-in-a-client-server-architecture/926952#926952

Windows for business Windows Server User experience Other
Developer technologies ASP.NET Other
SQL Server Other
Developer technologies C#
{count} votes

Accepted answer
  1. Lan Huang-MSFT 30,186 Reputation points Microsoft External Staff
    2023-07-28T08:20:00.99+00:00

    Hi @mohd mazhar khan,

    I found a document that might do what you want.

    This tutorial demonstrates how to create a Windows service app in Visual Studio that writes messages to the event log, including how to implement a timer component.

    https://learn.microsoft.com/en-us/dotnet/framework/windows-services/walkthrough-creating-a-windows-service-application-in-the-component-designer

    Tutorial: Create a Windows service app - GitHub

    Some other useful links:

    https://stackoverflow.com/a/41682223

    https://stackoverflow.com/a/12886071

    Best regards,
    Lan Huang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.