1

On my server I want to create custom logs for different applications. How is this done as a server administration exercise?

2
  • Unless you're writing the applications yourself, the applications won't know to write to the new logs that you've created.
    – mfinni
    Sep 30, 2011 at 16:30
  • yes, these are our own custom applications! Sep 30, 2011 at 18:17

1 Answer 1

3

You could use PowerShell's New-EventLog cmdlet to do this. More info here.

mfinni is right though. This is only useful for your own applications or scripts and such as you won't be able to redirect other apps to your new event log.

3
  • Exactly - this ain't syslog.
    – mfinni
    Sep 30, 2011 at 17:23
  • Thanks for the response. I ran the New-EventLog powershell cmdlet and seemingly added the log (no errors). However, I am not seeing the new log listed under the Applications and Services Logs node in the Event Viewer. Is there another step? Sep 30, 2011 at 18:30
  • From the article I cited - "This cmdlet creates a new classic event log on a local or remote computer." So the log will be under Windows Logs not Applications and Services. Sep 30, 2011 at 19:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .