Event Logs in Server Core
This week I’m going to talk a bit about event logs, since they are so important to figuring out any issues that might be occurring on a server. You can either view the event logs remotely using the Event Viewer MMC or locally using command line tools.
Remote Event Log access
From a Server or Vista installation, you can use the Event Viewer MMC snap-in to remotely view the event logs on. Although you can use the Windows XP or Windows Server 2003 Event Viewer, it doesn’t support all of the new functionality available with the event logs, so it is recommended to remotely use the new version.
Command Line Event Log access
Working with the event logs from the command line has improved in Longhorn Server. The old eventquery VBScript has been replaced by a new command line tool: wevtutil.exe. Using the el switch will provide a list of event logs you can query using the qe switch. However, this does much more then just let you query for events, it also lets you export, archive, clear, and configure the logs from the command line. Wevtutil.exe also supports remote operation, so could be used in scripts from a Vista or Server install.
If anyone has suggestions for topics they would like me to talk about, please let me know.
Andrew
Comments
- Anonymous
July 22, 2006
The comment has been removed - Anonymous
July 28, 2006
You can do this by running:
control intl.cpl
And then using the UI, just like you would on Vista or a Server install.
Server Core actually also includes datetime.cpl for setting the time zone.
Neither of these required anything that wasn't already in Server Core, so we included them to make it easy to set the timezone and keyboard layout.
I'll have to discuss these a little further in a future post.