Server 2016 Create a Eventfilter about the detaildescription

Starter0815 21 Reputation points
2020-08-04T08:11:35.267+00:00

Hello,

is there a way to filter the event logs so that I get only the entries back which have a defined word in the detailed description.

Example: I would like to see a list in which I only get the data records in which the word "shutdown" is in the detailed description.

15400-2020-08-04-09-24-11-bild01.png

Greetings

Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,521 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Leon Laude 85,816 Reputation points
    2020-08-04T09:33:51.46+00:00

    Hi,

    You could use advanced XML filtering as mentioned here:
    https://techcommunity.microsoft.com/t5/ask-the-directory-services-team/advanced-xml-filtering-in-the-windows-event-viewer/ba-p/399761


    (If the reply was helpful please don't forget to accept as answer, thank you)

    Best regards,
    Leon

    0 comments No comments

  2. Jenny Yan-MSFT 9,336 Reputation points
    2020-08-05T02:36:18.317+00:00

    Hi,
    You could filter event log by description via structured XML queries. 

    Here are the link of official guidance explaining how it works and an example from third party for your reference.

    Advanced XML filtering in the Windows Event Viewer
    https://techcommunity.microsoft.com/t5/ask-the-directory-services-team/advanced-xml-filtering-in-the-windows-event-viewer/ba-p/399761

    Filter Windows Event Viewer by details
    https://www.daniweb.com/hardware-and-software/microsoft-windows/threads/485296/filter-windows-event-viewer-by-details
    Please note: Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.

    Thanks,
    Jenny


  3. Starter0815 21 Reputation points
    2020-08-16T21:28:25.58+00:00

    Hello,

    thanks to all for you answers - and sorry for my late answer.

    The XML-Filter is very powerful but very hard to create. Does anyone know whether there is an assistant for this?

    Thanks

    0 comments No comments

  4. Jenny Yan-MSFT 9,336 Reputation points
    2020-08-17T06:25:05.447+00:00

    Hi,
    To customize the xml filter, you need to first navigate to the path of logs and check the keywords in the xml view.

    Let's take a random event ID 168 as example.

    1.The whole sentence in general tab is: The resolution requested by the client: Monitor 0: (1716, 993), origin: (0, 0). Server: WIN10.

    2.However, after changing to xml viewer, we found the information listed under event data only contains some keywords.
    17887-image.png

    3.Then the keywords to be filtered are restricted to below screenshot. I picked up 993, created custom view and added it to below query (path shall be the default info where to filter logs)
    <QueryList>
    <Query Id="0" Path="Microsoft-Windows-RemoteDesktopServices-RdpCoreTS/Operational">
    <Select Path="Microsoft-Windows-RemoteDesktopServices-RdpCoreTS/Operationa ">* [EventData [Data='993']]</Select>
    </Query>
    </QueryList>

    After clicking OK, I got the list of logs contains 993 under path "Microsoft-Windows-RemoteDesktopServices-RdpCoreTS/Operational".

    17845-image.png

    17888-image.png

    -----Please "Accept as answer" if the reply is helpful-----
    Best regards,
    Jenny


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.