using New-EventLog to create logs under Applications and Services Logs
6,935
Your answer lies here, in the notes near the bottom of the page.
Related videos on Youtube
![John Livermore](https://i.stack.imgur.com/TPz4Y.jpg?s=256&g=1)
Author by
John Livermore
Updated on September 18, 2022Comments
-
John Livermore almost 2 years
I am trying to get the new log to appear as a node under the Applications and Services Logs node in the event viewer, and I just learned here that the Powershell cmdlet New-EventLog will create a new event log.
I ran the cmdlet and it ran with no errors, so seemingly it worked. However, I am not seeing the new event log even after a right-click/refresh of the Applications and Services Logs folder.
Is there another step to make this appear?
My goal is for our custom applications to be able to write to application specific event logs located under Applications and Services Logs for easier monitoring.
-
John Livermore over 12 yearsThanks for the answer. It made me reread those notes, and although I had already made 'note' of those, it tweaked a thought that maybe shutting down the Event Viewer and reopening would make them appear. I did that and voila, the logs appeared. The notes say that no logs are created until actually written to, but that is not the behavior I am seeing. If I create the log, shut down Event Viewer and reopen, I can see it.
-
joeqwerty over 12 yearsGlad to help...