0

I'm looking for a way to create a new log in the Windows Event Viewer. With eventcreate, I can create an event for a certain log and source, but if I give a non existing log name, I get an error saying the '....' log does not exist.

If I use the C# EventLog.CreateEventSource, the Log is automatically created.

So, how do I create such a log under Applications and Services Logs in Event Viewer?

And, if not possible with Command Prompt, is it possible in the Event Viewer itself to create an extra log? (I do not want to go and mess in the registry, because like that you can also create a log).

Lieven Cardoen
  • 25,140
  • 52
  • 153
  • 244
  • 1
    possible duplicate of [How to create Windows EventLog source from command line?](http://stackoverflow.com/questions/446691/how-to-create-windows-eventlog-source-from-command-line) – josh poley Jan 22 '14 at 19:15

1 Answers1

1

I resorted to writing a little command line utility myself.

tdammers
  • 20,353
  • 1
  • 39
  • 56