0

I would like to get the eventlog from my windows 2012 r2 server, and display this, is any errors had occured.

I have found out on how to archive and filter the eventlog from the command line.

I guess the way to go now, is somehow to run actions on the command line of my server, but how do i do that so i can get the data to my website, whilst being secure?

Kasper Sølvstrøm
  • 270
  • 1
  • 2
  • 22

1 Answers1

0

What you need is an application wide error logger such as ELMA.

You can install ELMAH in an ASP.NET application via the NuGet package and it will automatically log all errors and you can examine those errors through a pre-configured route or by inspecting the error logs remotely.

Make sure you secure the the handler for displaying error logs properly. See this SO post for information on how to do it: How to secure Elmah.axd?

Community
  • 1
  • 1
dustinmoris
  • 3,195
  • 3
  • 25
  • 33