Windows 10: Event Viewer limit number of entries

Discus and support Event Viewer limit number of entries in Windows 10 Support to solve the problem; I have a shortcut to open Event Viewer directly to System. Only need to see the most recent 100 entries. How can I limit the number? 105961 Discussion in 'Windows 10 Support' started by tcebob, Mar 12, 2018.

  1. tcebob Win User

    Event Viewer limit number of entries


    I have a shortcut to open Event Viewer directly to System. Only need to see the most recent 100 entries. How can I limit the number?

    :)
     
    tcebob, Mar 12, 2018
    #1
  2. AdrienK Win User

    Windows 10 File Explorer not working

    Have you tried using Event Viewer? Try to open File Explorer, note the time you try to open it, and then look for an event under Event Viewer "applications". There should be an event for that time plus an "information" entry.
     
    AdrienK, Mar 12, 2018
    #2
  3. error entries on Event Viewer

    Hi,

    As you know most of the error messages in the Event viewer can be safely ignored, if you are not facing any serious issues. However if you notice any performance related issues, then you can refer those error messages to find the exact cause.

    For hard disk drives I suggest you to optimize the drives of your PC by following the steps below and check if the space of the drives will be reduced.


    • Open File Explorer by pressing Windows logo + E keys on the keyboard.

    • From the left side panel click on This PC and open Properties by right-clicking on SSD.

    • Click on Tools tab and select Optimize under Optimize and defragment drive.

    • You can also analyze the drive by click on the Analyze option from the same window.
    For Internet Explorer you can Reset Internet Explorer.


    • Press Windows key + R, type inetcpl.cpl and press Enter.

    • Go to Advanced tab.

    • Click on Reset and OK.
    Note: Please note that running Reset Internet Explorer Settings will reset all user-defined settings including those set by installed extensions, toolbars and other add-ons to
    IE Defaults. This includes all Security, Privacy and Zone settings. Also this will clear browsing history, delete all temporary Internet Files, cookies, form data and especially all stored passwords.

    It’s not a good idea to uninstall the latest Windows Update as they have a lot of security patches. As you know drivers have to be provided by manufacturer, you can go and install the latest drivers offered from the manufacturer’s website.

    Hope this information is helpful.
     
    SujataMoktan, Mar 12, 2018
    #3
  4. lx07 Win User

    Event Viewer limit number of entries

    Would limiting it by time be OK? You could make a custom view selecting the last hour (or day), save it somewhere (right click and export) and then make a shortcut eventvwr /vEvent Viewer limit number of entries :path_to_saved_XML_file

    Alternatively if you want the last 100 specifically you can get them in powershell Code: get-eventlog -logname system -newest 100[/quote] You could then send the output to a file or whatever you wanted.
     
  5. tcebob Win User
    Splendid. Thank you.

    . . . Tried both, custom view works for me. Apparently EV does not remember the the view so I need to click it when I open EV. Can I include the view in my shortcut?
    Code: C:\Windows\System32\winevt\Logs\System.evtx[/quote]
     
    tcebob, Mar 12, 2018
    #5
  6. lx07 Win User
    That is strange - it remembers the view for me. Even if I change to another view when I close EV and re-open using shortcut it jumps back to the defined custom view.

    How did you make the shortcut?

    This is mine:


    Event Viewer limit number of entries [​IMG]


    And this is the XML from exporting the custom view (I stored it in C:\Temp\SystemLastHour.xml): PHP Code: <ViewerConfig><QueryConfig><QueryParams><Simple><Channel>System</Channel><RelativeTimeInfo>1</RelativeTimeInfo><Level>1,2,3,4,0</Level><BySource>False</BySource></Simple></QueryParams><QueryNode><Name>SystemLastHour</Name><QueryList><Query Id="0" Path="System"><Select Path="System">*[System[(Level=1 or Level=2 or Level=3 or Level=4 or Level=0) and TimeCreated[timediff(@SystemTime) &lt;= 3600000]]]</Select></Query></QueryList></QueryNode></QueryConfig></ViewerConfig>
     
  7. tcebob Win User
    OK, my saved xml is considerably longer:

    Code: <ViewerConfig><QueryConfig><QueryParams><Simple><Channel>file://C:\WINDOWS\System32\Winevt\Logs\System.evtx</Channel><RelativeTimeInfo>3</RelativeTimeInfo><BySource>False</BySource></Simple></QueryParams><QueryNode><Name LanguageNeutralValue="24hr">24hr</Name><QueryList><Query Id="0" Path="file://C:\WINDOWS\System32\Winevt\Logs\System.evtx"><Select Path="file://C:\WINDOWS\System32\Winevt\Logs\System.evtx">*[System[TimeCreated[timediff(@SystemTime) &lt;= 86400000]]]</Select></Query></QueryList></QueryNode></QueryConfig><ResultsConfig><Columns><Column Name="Level" Type="System.String" Path="Event/System/Level" Visible="">116</Column><Column Name="Keywords" Type="System.String" Path="Event/System/Keywords">70</Column><Column Name="Date and Time" Type="System.DateTime" Path="Event/System/TimeCreated/@SystemTime" Visible="">166</Column><Column Name="Source" Type="System.String" Path="Event/System/Provider/@Name" Visible="">76</Column><Column Name="Event ID" Type="System.UInt32" Path="Event/System/EventID" Visible="">76</Column><Column Name="Task Category" Type="System.String" Path="Event/System/Task" Visible="">80</Column><Column Name="User" Type="System.String" Path="Event/System/Security/@UserID">50</Column><Column Name="Operational Code" Type="System.String" Path="Event/System/Opcode">110</Column><Column Name="Log" Type="System.String" Path="Event/System/Channel">80</Column><Column Name="Computer" Type="System.String" Path="Event/System/Computer">170</Column><Column Name="Process ID" Type="System.UInt32" Path="Event/System/Execution/@ProcessID">70</Column><Column Name="Thread ID" Type="System.UInt32" Path="Event/System/Execution/@ThreadID">70</Column><Column Name="Processor ID" Type="System.UInt32" Path="Event/System/Execution/@ProcessorID">90</Column><Column Name="Session ID" Type="System.UInt32" Path="Event/System/Execution/@SessionID">70</Column><Column Name="Kernel Time" Type="System.UInt32" Path="Event/System/Execution/@KernelTime">80</Column><Column Name="User Time" Type="System.UInt32" Path="Event/System/Execution/@UserTime">70</Column><Column Name="Processor Time" Type="System.UInt32" Path="Event/System/Execution/@ProcessorTime">100</Column><Column Name="Correlation Id" Type="System.Guid" Path="Event/System/Correlation/@ActivityID">85</Column><Column Name="Relative Correlation Id" Type="System.Guid" Path="Event/System/Correlation/@RelatedActivityID">140</Column><Column Name="Event Source Name" Type="System.String" Path="Event/System/Provider/@EventSourceName">140</Column></Columns></ResultsConfig></ViewerConfig>[/quote] I note that your shortcut calls the xml while mine calls Winevt. I'll try your way . . .
     
    tcebob, Mar 12, 2018
    #7
  8. lx07 Win User

    Event Viewer limit number of entries

    Hmmm - I didn't write the xml - just made a custom view (selecting system for last hour) and exported it with right click, export custom view.

    It is interesting yours is more complex right from the top - yours says:
    <Channel>file://C:\WINDOWS\System32\Winevt\Logs\System.evtx</Channel>
    and mine is
    <Channel>System</Channel>

    You could save the xml in my post above, make a shortcut using that and see if that works for you. There is no system specific info in it.

    I've no idea why it is generated differently let alone how to edit it manually.
     
  9. tcebob Win User
    Success. My Shortcut: C:\Windows\System32\eventvwr.exe /v:"c:\all\Bobs\Documents\EventViewer24HrView.xml"

    Thanks again.
     
    tcebob, Mar 12, 2018
    #9
  10. lx07 Win User
    You are welcome - I learned something today too *Smile
     
Thema:

Event Viewer limit number of entries

Loading...
  1. Event Viewer limit number of entries - Similar Threads - Event Viewer limit

  2. How to delete specific entries in Event Viewer Logs?

    in Windows 10 Gaming
    How to delete specific entries in Event Viewer Logs?: I want to delete specific entries of MS Defender event viewer logs without clearing everything. How can I do this? Will this create another log that shows me deleting some of the entries?...
  3. How to delete specific entries in Event Viewer Logs?

    in Windows 10 Software and Apps
    How to delete specific entries in Event Viewer Logs?: I want to delete specific entries of MS Defender event viewer logs without clearing everything. How can I do this? Will this create another log that shows me deleting some of the entries?...
  4. Event viewer entries

    in Windows 10 Drivers and Hardware
    Event viewer entries: Am receiving entries in event viewer, which leave me confused.USBIEUpdate not working. Microsoft update says all ok.Dell Support Assist shows now problems.USB ports are working, as I am able to do back up to external hard drive.Device manager says USB drives are up to...
  5. Event viewer entries

    in Windows 10 Gaming
    Event viewer entries: Am receiving entries in event viewer, which leave me confused.USBIEUpdate not working. Microsoft update says all ok.Dell Support Assist shows now problems.USB ports are working, as I am able to do back up to external hard drive.Device manager says USB drives are up to...
  6. Event viewer entries

    in Windows 10 Software and Apps
    Event viewer entries: Am receiving entries in event viewer, which leave me confused.USBIEUpdate not working. Microsoft update says all ok.Dell Support Assist shows now problems.USB ports are working, as I am able to do back up to external hard drive.Device manager says USB drives are up to...
  7. Event Viewer entry

    in Windows 10 BSOD Crashes and Debugging
    Event Viewer entry: Can someone please tell me what this means? https://answers.microsoft.com/en-us/windows/forum/all/event-viewer-entry/db9ad763-b58d-4c2c-914a-1111a4f7ad96
  8. Event Viewer entry

    in Windows 10 Gaming
    Event Viewer entry: Can someone please tell me what this means? https://answers.microsoft.com/en-us/windows/forum/all/event-viewer-entry/db9ad763-b58d-4c2c-914a-1111a4f7ad96
  9. Event Viewer entry

    in Windows 10 Software and Apps
    Event Viewer entry: Can someone please tell me what this means? https://answers.microsoft.com/en-us/windows/forum/all/event-viewer-entry/db9ad763-b58d-4c2c-914a-1111a4f7ad96
  10. Clearing event viewer entries

    in Windows 10 Support
    Clearing event viewer entries: How can I construct a .bat file to clear entries in the event viewer. Thanks 12367

Users found this page by searching for:

  1. window event viewer error event limit

    ,
  2. ViewerConfig><QueryConfig><QueryParams><Simple><Channel