by Mitch Tulloch
Windows

Converting Event Log Files

September 5, 2008, 02:40 PM — 


Working with multiple versions of Windows client and server operating systems can occasional cause some frustration. For instance, if you have both Windows Server 2008 and Windows Server 2003 running on your servers, you might get tripped up because of the different formats these two versions of Windows use for their event logs. On the one hand, you've got the "classic" EVT log file format of Windows Server 2003 and earlier. Then you've got the newer, XML-based EVTX lot file format of Windows Server 2008 and Windows Vista, which is easier to search than the legacy format.

So the question arises, how can you convert older EVT logs into the newer EVTX format? Here are three ways you can do this.

First, you can use the new WEVTUTIL command in Windows Server 2008 as follows:

wevtutil epl application.evt application.evtx /lf:true

Second, you can copy the below reg script into Notepad, save it using the .reg extension, and merge it into your registry. When you do this and restart your system, you'll be able to right-click on an .evt file and select a "Convert to evtx" option from the shortcut menu.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\SystemFileAssociations\.evt]

[HKEY_CLASSES_ROOT\SystemFileAssociations\.evt\shell]

[HKEY_CLASSES_ROOT\SystemFileAssociations\.evt\shell\ConvertToEvtx]

@="Convert to evt&x"

[HKEY_CLASSES_ROOT\SystemFileAssociations\.evt\shell\ConvertToEvtx\command]

@="\"wevtutil.exe\" epl \"%1\" \"%1x\" /lf:true"

And third, you can use Windows PowerShell as follows to recurse a folder and convert multiple evt files as a single batch:

dir *.evt -recurse | foreach-object {wevtutil epl $_.FullName ($_.FullName + "x") /lf:true}

What tricks to you use for managing event logs? Email me and I'll share them with our readers.

I like it!
Free books

Build your tech library with our book giveaways.

Windows PowerShell 2.0 Unleashed
By Tyson Kopczynski, Pete Handley, Marco Shaw; Published by Sams

Windows PowerShell Unleashed will not only give you deep mastery over PowerShell but also a greater understanding of the features being introduced in PowerShell 2.0–and show you how to use it to solve your challenges in your production environment. Enter now!

 

Ubuntu Server Administration
By Michael Jang; Published by McGraw-Hill Osborne Media

Realize a dynamic, stable, and secure Ubuntu Server environment with expert guidance, tips, and techniques from a Linux professional. Ubuntu Server Administration covers every facet of system management -- from users and file systems to performance tuning and troubleshooting. Enter now!

Featured Sponsor

AISO founders envisioned a Web hosting company that was environmentally friendly. While the company employed energy-efficient innovations like solar panels, its infrastructure produced unacceptable power and cooling requirements. Find out how AISO leveraged AMD technology to overcome their challenge in this case study white paper.

In this whitepaper, Scalar explores the opportunity to change the landscape with respect to mission critical databases built around Oracle. Leveraging technologies such as Linux, high-end commodity processing power and Oracle RAC technology to architect, design, build and maintain database infrastructure that delivers maximum availability, reliability and performance at a fraction of traditional cost.

On a typical day, weather.com, the Web site for The Weather Channel in Atlanta, serves up between 15 million and 20 million page views. But in September 2004, when back-to-back hurricanes ransacked Florida, the peak traffic on one day more than tripled: over 70 million page views by more than 7 million unique visitors. Read the full success story now.

More Resources