Error log Monitoring using window service with timer using Mom alerts concept

coder rock 156 Reputation points

How to implement Mom Alerts concept for Error log Monitoring using C# window service with timer. I have plan to create one window service with timer for every 5 minutes using 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 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 :

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
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

    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.

    Tutorial: Create a Windows service app - GitHub

    Some other useful links:

    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