Converting Event Log Files

By Mitch Tulloch  Add a new comment

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.

    Add a comment

    Post a comment using one of these accounts
    Or join now
    At least 6 characters

    Note: Comment will appear soon after you have activated your account.
    Obscene/spam comments will be removed and accounts suspended.
    The information you submit is subject to our Privacy Policy and Terms of Service.

    ITworld LIVE

    WindowsWhite Papers & Webcasts

    White Paper

    Microsoft Volume Licensing Reference Guide

    This guide provides an overview of the key features of Microsoft Volume Licensing programs. The information is presented by organizational type and size-two of the most important keys to determining your best Volume Licensing option.

    White Paper

    HP Software Licensing & Management Solutions for Microsoft

    See how HP Software Licensing & Management Solutions (SLMS) can help you identify the best Microsoft licensing program for your needs, get the most from your licensing agreement, and maximize your Microsoft software investment.

    White Paper

    Microsoft Open Value Program Guide

    In this overview, see how Microsoft Open Value provides a flexible, affordable way for small to midsize organizations (i.e. those with five or more desktop PCs) to use and manage all their Microsoft licensed products under a single agreement.

    White Paper

    Microsoft Volume Licensing Comparison - Enterprise

    With this quick-reference document, you can easily compare the available Microsoft Volume Licensing programs for enterprise organizations with 250+ devices, and tailor a program to help save costs, manage multiple licenses, and keep software up-to-date.

    White Paper

    Microsoft Enterprise Agreement Program Brief

    This white paper provides an in-depth look into how the Microsoft Enterprise Agreement Program provides with flexibility to choose among on-premises software and cloud services to best suit your user needs, and helps you optimize your technology spend as business priorities change.

    See more White Papers | Webcasts

    Ask a question

    Ask a Question