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

coder rock 156 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

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,165 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,238 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
11,691 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
9,927 questions
{count} votes

Accepted answer
  1. Lan Huang-MSFT 22,751 Reputation points Microsoft Vendor
    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