Filter in the event viewer.


  1. Posts : 64
    Windows 10 pro 64 Bit Version 20H2 Build 19042
       #1

    Filter in the event viewer.


    Hi,
    is it possible to create a filter by manually editing the XML query in the event viewer and have the entered query remain stored in the log even if I close the event viewer?
    Thanks
      My Computer


  2. Posts : 16,950
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #2

    You can export an Event viewer, Custom view as an xml then manually edit that xml and import the altered one. That will remain permanently.

    When I have done this I have always avoided uncertainty by editing the Name field in the xml to give it a unique name so I do not get it mixed up with the original version. I do this even if I know I'm going to delete the original version.

    I was not sure whether to reply or not because I have never seen Event viewer itself make the xml available for editing.
    - I have always had to edit that outside of Event viewer.
    - So I a bit concerned that I have misunderstood your question.

    Denis
      My Computer


  3. Posts : 64
    Windows 10 pro 64 Bit Version 20H2 Build 19042
    Thread Starter
       #3


    Sorry if I explained myself wrong, but I just wanted to filter the system log .. and that it remain stored
    es:
    Code:
    <QueryList>  <Query Id="0" Path="System">
        <Select Path="System">*</Select>
        <Suppress Path="System">
          *[System[(EventID=10016)]]
          and
          *[EventData[
            (
              Data[@Name='param4'] and Data='{D63B10C5-BB46-4990-A94F-E40B9D520160}' and
              Data[@Name='param5'] and Data='{9CA88EE3-ACB7-47C8-AFC4-AB702511C276}' and
              Data[@Name='param8'] and Data='S-1-5-18'
            )
            or
            ( Data[@Name='param4'] and Data='{260EB9DE-5CBE-4BFF-A99A-3710AF55BF1E}' and
              Data[@Name='param5'] and Data='{260EB9DE-5CBE-4BFF-A99A-3710AF55BF1E}'
            )
            or
            (
              Data[@Name='param4'] and Data='{C2F03A33-21F5-47FA-B4BB-156362A2F239}' and
              Data[@Name='param5'] and Data='{316CDED5-E4AE-4B15-9113-7055D84DCC97}' and
              Data[@Name='param8'] and Data='S-1-5-19'
            )
            or
            (
              Data[@Name='param4'] and Data='{6B3B8D23-FA8D-40B9-8DBD-B950333E2C52}' and
              Data[@Name='param5'] and Data='{4839DDB7-58C2-48F5-8283-E1D1807D0D7D}' and
              Data[@Name='param8'] and Data='S-1-5-19'
            )
          ]]
        </Suppress>
      </Query>
    
    </QueryList>


    Thank you
      My Computer


  4. Posts : 16,950
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #4

    Event viewer lets you create a Custom view that can, if you wish, be your filtered version of the System log. That will remain stored.

    I have never heard of anybody trying to alter the System log definition itself. I have no idea if it is possible.

    Denis
      My Computer


  5. Posts : 64
    Windows 10 pro 64 Bit Version 20H2 Build 19042
    Thread Starter
       #5

    This way it works for example, but if you close event viewer it doesn't keep the xml stored.

    Filter in the event viewer.-cattura.png
      My Computer


  6. Posts : 16,950
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #6

    So don't select Filter current log.
    Select Create custom view instead. That creates a permanent filter.

    Denis
      My Computer


  7. Posts : 64
    Windows 10 pro 64 Bit Version 20H2 Build 19042
    Thread Starter
       #7

    Already proven, but not very practical.
    Anyway thanks
    Hello
      My Computer


  8. Posts : 16,950
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #8

    What is 'not very practical' about defining a Custom view?

    Custom views are how Event viewer does precisely what you want it to do. The name 'Custom view' is misleading and I think they ought to be called 'Custom filters' because that is what they are.

    Denis
      My Computer


 

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

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




Windows 10 Forums