Event Viewer Logging


  1. Posts : 166
    Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
       #1

    Event Viewer Logging


    I recently noticed some changes in performance after enabling all logs in Event Viewer. Is there any way possible I can get a list of the enable/disable default and customized settings for all of the logs in Event Viewer?
      My Computer


  2. Posts : 2,798
    Windows 7 x64, Vista x64, 8.1 smartphone
       #2

    Hello Wyatt, if I understand your question, The technet wiki shows you how to retreive a list of all windows 7 event logs

    and use the Windows Events Command Line Utility ( WEVTUTIL.exe ) from cmd prompt to interrogate each log customisation.
    .
      My Computer


  3. Posts : 166
    Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
    Thread Starter
       #3

    Is there a way to get a list like this that reflects whether the files are enabled or disabled?

    How may I export it as a text file?
      My Computer


  4. Posts : 2,798
    Windows 7 x64, Vista x64, 8.1 smartphone
       #4

    I can get something like what you want with creating a batch file. The batch file can be created with notepad and saved to your computer, in the usual way.

    The batch file assumes some D:\ drive that the user has access rights. The batch file basically outputs a list of event logs to D:\logfile.txt and then for each event log, outputs the configuration information to another list called D:\WEVLIST.TXT. The results you are looking for are in WEVLIST.TXT.

    Here is the batch file (version 1.0):

    Code:
     
    WEVTUTIL EL > D:\LOGLIST.TXT
    for /f %%A in ( D:\LOGLIST.TXT ) do WEVTUTIL GL %%A >> D:\WEVLIST.TXT
      My Computer


  5. Posts : 166
    Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
    Thread Starter
       #5

    iko22 said:
    I can get something like what you want with creating a batch file. The batch file can be created with notepad and saved to your computer, in the usual way.

    The batch file assumes some D:\ drive that the user has access rights. The batch file basically outputs a list of event logs to D:\logfile.txt and then for each event log, outputs the configuration information to another list called D:\WEVLIST.TXT. The results you are looking for are in WEVLIST.TXT.

    Here is the batch file (version 1.0):

    Code:
     
    WEVTUTIL EL > D:\LOGLIST.TXT
    for /f %%A in ( D:\LOGLIST.TXT ) do WEVTUTIL GL %%A >> D:\WEVLIST.TXT
    What am I doing wrong? I used Windows Powershell and it returned the following...

    Windows PowerShell
    Copyright (C) 2009 Microsoft Corporation. All rights reserved.

    PS C:\Users\Wyatt> WEVTUTIL EL > D:\LOGLIST.TXT
    The device is not ready.
    At line:1 char:14
    + WEVTUTIL EL > <<<< D:\LOGLIST.TXT
    + CategoryInfo : OpenError: (:) [], IOException
    + FullyQualifiedErrorId : FileOpenFailure

    PS C:\Users\Wyatt> for /f %%A in ( D:\LOGLIST.TXT ) do WEVTUTIL GL %%A >> D:\WEVLIST.TXT
    Missing opening '(' after keyword 'for'.
    At line:1 char:5
    + for <<<< /f %%A in ( D:\LOGLIST.TXT ) do WEVTUTIL GL %%A >> D:\WEVLIST.TXT
    + CategoryInfo : ParserError: (OpenParenToken:TokenId) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : MissingOpenParenthesisAfterKeyword

    PS C:\Users\Wyatt>
      My Computer


  6. Posts : 2,798
    Windows 7 x64, Vista x64, 8.1 smartphone
       #6

    Change the destination path.

    Where "D:" occurs in batch file, substitute for a valid pathname or use "C:\Users\Wyatt\Desktop".
      My Computer


  7. Posts : 166
    Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
    Thread Starter
       #7

    iko22 said:
    I can get something like what you want with creating a batch file. The batch file can be created with notepad and saved to your computer, in the usual way.

    The batch file assumes some D:\ drive that the user has access rights. The batch file basically outputs a list of event logs to D:\logfile.txt and then for each event log, outputs the configuration information to another list called D:\WEVLIST.TXT. The results you are looking for are in WEVLIST.TXT.

    Here is the batch file (version 1.0):

    Code:
     
    WEVTUTIL EL > D:\LOGLIST.TXT
    for /f %%A in ( D:\LOGLIST.TXT ) do WEVTUTIL GL %%A >> D:\WEVLIST.TXT
    Entering only the first line I get an export listing only the Event Viewer log names.

    Entering the second line I get this...
    Attached Thumbnails Attached Thumbnails Event Viewer Logging-ps-screenshot.png  
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 10:16.
Find Us