0
Views
1
Comments
tracking status of windows services on EventLog in outsystems
Question
Hi,

We have a set of services running on windows.These services will be running every 1 minute and we are logging the status such as started,stopped,error details etc of these services in Windows Event Log.So I want to track or show  the status of these services logged in event log in outsystems webscreen.How can we achieve this functionality in outsystems.

Thanks,
Prashanth
2016-04-21 20-09-55
J.
 
MVP
I think you need to create an extension for it.
Takes from MSDN and instead of Console you create a recorldlist ofcourse.
(And I expect the extension-usre need to have certain right to be able to access it)


using System;
using System.Diagnostics;

class MySample{

    public static void Main(){

        EventLog myLog = new EventLog();
        myLog.Log = "MyNewLog";                      
        foreach(EventLogEntry entry in myLog.Entries){
            Console.WriteLine("\tEntry: " + entry.Message);
        }    
    }       
}
   
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.