Searching Event Viewer for a Specific Program Server 2016

SchinkenLover 20 Reputation points
2023-09-12T11:48:39.3+00:00

Hello,

I have a customer who is running Windows Server 2016 on their server. There's a program running on this server that, according to the manufacturer, is frequently closed by a specific user and needs to be manually restarted. Now, I would like to know when this program is being closed and by whom. How can I filter this information in the Event Viewer? Or should I seek assistance elsewhere?

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

Accepted answer
  1. Wesley Li 8,355 Reputation points
    2023-10-18T07:35:34+00:00

    Hello

    You can use the Event Viewer in Windows Server 2016 to filter events related to a specific program. Here’s how you can do it:

    Open Event Viewer: You can access it by entering ‘Event’ in Windows Start.

    Access Log Filters: Right-click a group and choose the “Filter Current Log” option.

    Filter by Event Levels and Keywords: When troubleshooting, you might be interested in Critical, Error, and Warning Event Levels. You can also filter by a time period to look at what other events are happening around that time.

    Create a Custom View using XML Filtering: Starting in Windows Vista/2008, you have the ability to modify the XML query used to generate Custom Views. You can create a Custom View based on the username or the program name. Here is an example of an XML query that filters through warnings, errors, and criticals for a specific application:

    <QueryList>
    
      <Query Id="0" Path="Application">
    
        <Select Path="Application">
    
          * [System [(Level=1 or Level=2 or Level=3)]] and * [EventData [Data and (Data='YourProgramName')]]
    
        </Select>
    
      </Query>
    
    </QueryList>
    

    Replace ‘YourProgramName’ with the name of your program.

    Please note that this method requires some familiarity with XML and the structure of Windows event logs.

    I hope this helps! Let me know if you have any other questions.

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.