<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>article What are the basics for Windows Logging? in PAM Self-Hosted Articles</title>
    <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-articles/what-are-the-basics-for-windows-logging/ta-p/1428632</link>
    <description>&lt;H3&gt;Question&lt;/H3&gt;
What are the basics for Windows Logging?

&lt;H3&gt;Answer&lt;/H3&gt;
&lt;H1&gt;Windows Logging Basics&lt;/H1&gt;
&lt;P&gt;Logs are records of events that happen in your computer, either by a person or by a running process. They help you track what happened and troubleshoot problems.&lt;/P&gt;
&lt;P&gt;The Windows event log contains logs from the operating system and applications such as SQL Server or Internet Information Services (IIS). The logs use a structured data format, making them easy to search and analyze. Some applications also write to log files in text format. For example, IIS Access Logs.&lt;/P&gt;
&lt;P&gt;This article explores the&amp;nbsp;&lt;STRONG&gt;Event Viewer&lt;/STRONG&gt;&amp;nbsp;interface and features, and introduces other major application and services logs. Examples are provided to give you a full grasp of how monitoring events can help you manage your systems for health and security.&lt;/P&gt;
&lt;H2&gt;Windows Event Logs&lt;/H2&gt;
&lt;P&gt;&lt;STRONG&gt;Windows Event Viewer&lt;/STRONG&gt;&amp;nbsp;displays the Windows event logs. Use this application to view and navigate the logs, search and filter particular types of logs, export logs for analysis, and more. We’ll show you how to access Windows Event Viewer and demonstrate available features.&lt;/P&gt;
&lt;H2&gt;Starting Windows Event Viewer&lt;/H2&gt;
&lt;P&gt;Windows Server 2019 Event Viewer can be accessed in several ways:&lt;/P&gt;
&lt;UL&gt;&lt;LI&gt;Windows Control Panel&lt;/LI&gt;&lt;LI&gt;Server Manager&lt;/LI&gt;&lt;LI&gt;Windows Admin Center&lt;/LI&gt;&lt;LI&gt;Computer Management&lt;/LI&gt;&lt;LI&gt;Component Services&lt;/LI&gt;&lt;LI&gt;Command Prompt&lt;/LI&gt;&lt;/UL&gt;
&lt;H3&gt;Windows Control Panel&lt;/H3&gt;
&lt;P&gt;Control Panel is the standard Windows component for viewing and changing system settings. It can be found in Windows Server and Windows desktop editions. To access the Event Viewer:&lt;/P&gt;
&lt;OL&gt;&lt;LI&gt;Open&amp;nbsp;&lt;STRONG&gt;Control Panel&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Click&amp;nbsp;&lt;STRONG&gt;Administrative Tools&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Double-click&amp;nbsp;&lt;STRONG&gt;Event Viewer&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;&lt;IMG alt="" height="397" src="https://ip1.i.lithium.com/399d7b8a7315367785a6f5af1d106677b34c4f0b/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f50696374757265312d312e706e67" width="791" /&gt;&lt;/P&gt;
&lt;H3&gt;Server Manager&lt;/H3&gt;
&lt;P&gt;The Server Manager console lets you manage settings on the local server and on remote servers. To access Event Viewer from Server Manager:&lt;/P&gt;
&lt;OL&gt;&lt;LI&gt;Open&amp;nbsp;&lt;STRONG&gt;Server Manager&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Open&amp;nbsp;&lt;STRONG&gt;Tools&amp;nbsp;&lt;/STRONG&gt;&amp;gt;&amp;nbsp;&lt;STRONG&gt;Event Viewer&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;&lt;IMG alt="" height="375" src="https://ip1.i.lithium.com/e3740bf69e2b1e65b1ff6c2df8479c4ecc6c9f5e/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f50696374757265312d322e706e67" width="974" /&gt;&lt;/P&gt;
&lt;H3&gt;Windows Admin Center&lt;/H3&gt;
&lt;P&gt;Windows Admin Center is a browser-based application for managing servers, clusters, desktop PCs, and other infrastructure components. To access Event Viewer from the Windows Admin Center:&lt;/P&gt;
&lt;OL&gt;&lt;LI&gt;Open&amp;nbsp;&lt;STRONG&gt;Windows Admin Center&lt;/STRONG&gt;&amp;nbsp;in a supported browser.&lt;/LI&gt;&lt;/OL&gt;
&lt;OL&gt;&lt;LI&gt;Click&amp;nbsp;&lt;STRONG&gt;Events&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;&lt;IMG alt="" height="525" src="https://ip1.i.lithium.com/ebe101db5d138de59ac7823a8f576a2f293f0d01/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f50696374757265312d332e706e67" width="974" /&gt;&lt;/P&gt;
&lt;H3&gt;Computer Management&lt;/H3&gt;
&lt;P&gt;The Computer Management console provides access to administrative tasks on a local or remote server. To open Event Viewer from Computer Management:&lt;/P&gt;
&lt;OL&gt;&lt;LI&gt;Open&amp;nbsp;&lt;STRONG&gt;Computer Management&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Click&amp;nbsp;&lt;STRONG&gt;Event Viewer&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;&lt;IMG alt="" height="462" src="https://ip1.i.lithium.com/cc8c377c764937dbe2fd4c85abf0eb7457b82d81/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f50696374757265312d342e706e67" width="974" /&gt;&lt;/P&gt;
&lt;H3&gt;Windows Component Service&lt;/H3&gt;
&lt;P&gt;Another built-in application is the Windows Component Services Manager that enables us to configure DCOM applications running on Windows. Windows Event Viewer is accessible from Component Services Manager as well:&lt;/P&gt;
&lt;OL&gt;&lt;LI&gt;Open&amp;nbsp;&lt;STRONG&gt;Component Services&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Click&amp;nbsp;&lt;STRONG&gt;Event Viewer&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;H3&gt;&lt;IMG alt="" height="625" src="https://ip1.i.lithium.com/dfa0defab2486e18c91a4140ffc13a26f07b4494/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f50696374757265312d352e706e67" width="974" /&gt;&lt;/H3&gt;
&lt;H3&gt;Command Prompt&lt;/H3&gt;
&lt;P&gt;Lastly, you can open the Event Viewer directly from a command prompt. To do so:&lt;/P&gt;
&lt;OL&gt;&lt;LI&gt;Open a&amp;nbsp;&lt;STRONG&gt;Command Prompt&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Type:&amp;nbsp;&lt;STRONG&gt;eventvwr&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;H2&gt;Using the Windows Event Viewer Interface&lt;/H2&gt;
&lt;P&gt;Event Viewer has an intuitive user interface. The main screen is divided into three sections:&lt;/P&gt;
&lt;UL&gt;&lt;LI&gt;Navigation pane&lt;/LI&gt;&lt;LI&gt;Detail pane&lt;/LI&gt;&lt;LI&gt;Action pane&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;You can create Summary and Custom views. We’ll guide you through these options.&lt;/P&gt;
&lt;H3&gt;Navigation Pane&lt;/H3&gt;
&lt;P&gt;The Navigation pane is where you choose the event log to view. By default, there are five categories of Windows logs:&lt;/P&gt;
&lt;UL&gt;&lt;LI&gt;Application – Information logged by applications hosted on the local machine.&lt;/LI&gt;&lt;LI&gt;Security – Information related to login attempts (success and failure), elevated privileges, and other audited events.&lt;/LI&gt;&lt;LI&gt;Setup – Messages generated when installing and upgrading the Windows operating system. If the Windows system is a domain controller, those messages are also logged here.&lt;/LI&gt;&lt;LI&gt;System – Messages generated by the Windows operating system.&lt;/LI&gt;&lt;LI&gt;Forwarded Events – Events forwarded by other computers when the local machine is functioning as a central subscriber.&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;There is also a section for Applications and Services Logs, including categories for Hardware Events, Internet Explorer and Windows PowerShell events.&lt;/P&gt;
&lt;P&gt;Event Viewer Navigation pane:&lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" height="668" src="https://ip1.i.lithium.com/69bc41d5ce983244fc9787f837dbe2d953c2e9c7/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f50696374757265312d362e706e67" width="343" /&gt;&lt;/P&gt;
&lt;H3&gt;Detail Pane&lt;/H3&gt;
&lt;P&gt;When Event Viewer is opened, the Detail pane displays the Overview and Summary. We’ll discuss the&amp;nbsp;&lt;A href="https://www.loggly.com/ultimate-guide/windows-logging-basics/#bookmark=id.9y7qf1gi7qjk" target="_blank"&gt;Summary Views&lt;/A&gt;&amp;nbsp;later. Select an item from the Navigation pane to see a list of events.&lt;/P&gt;
&lt;P&gt;Event entries are listed by default in chronological order with the latest events at the top. Click on any column header to sort events by that field in ascending or descending order. Clicking a second time in the same column head reverses the sort order. For example, click on&amp;nbsp;&lt;STRONG&gt;Level&amp;nbsp;&lt;/STRONG&gt;to sort by severity. A caret&amp;nbsp;&lt;STRONG&gt;^&lt;/STRONG&gt;&amp;nbsp;symbol or reverse caret indicates the sort field and direction of the sort.&lt;/P&gt;
&lt;P&gt;Each event has a severity&amp;nbsp;&lt;STRONG&gt;Level&lt;/STRONG&gt;:&lt;/P&gt;
&lt;TABLE width="624"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD colspan="1" rowspan="1" width="33"&gt;&lt;IMG alt="" height="33" src="https://ip1.i.lithium.com/f036960f3e305d1c05e543209f4f2f90fd858e4d/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f69636f6e312e706e67" width="31" /&gt;&lt;/TD&gt;&lt;TD colspan="1" rowspan="1" width="591"&gt;Information&amp;nbsp;messages indicate a successful action.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD colspan="1" rowspan="1" width="33"&gt;&lt;IMG alt="" height="33" src="https://ip1.i.lithium.com/580a954f8ca5d47cb76c6a7ad6d44f0a86e3084e/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f69636f6e322e706e67" width="27" /&gt;&lt;/TD&gt;&lt;TD colspan="1" rowspan="1" width="591"&gt;Warning&amp;nbsp;messages indicate an event occurred that might become a problem.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD colspan="1" rowspan="1" width="33"&gt;&lt;IMG alt="" height="33" src="https://ip1.i.lithium.com/bfd9e6569f99f4f6d659adb640de47754c7aaae3/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f69636f6e332e706e67" width="31" /&gt;&lt;/TD&gt;&lt;TD colspan="1" rowspan="1" width="591"&gt;Error&amp;nbsp;messages indicate a significant problem occurred.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD colspan="1" rowspan="1" width="33"&gt;&lt;IMG alt="" height="37" src="https://ip1.i.lithium.com/95dc36d7262d4287a51bfe656f0bc94899147fbe/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f69636f6e342e706e67" width="31" /&gt;&lt;/TD&gt;&lt;TD colspan="1" rowspan="1" width="591"&gt;Critical messages indicate a severe problem occurred.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD colspan="1" rowspan="1" width="33"&gt;&lt;IMG alt="" height="43" src="https://ip1.i.lithium.com/ff44fecd6fae57007df0c2a0517c003944a306f3/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f69636f6e352e706e67" width="43" /&gt;&lt;/TD&gt;&lt;TD colspan="1" rowspan="1" width="591"&gt;Audit success is associated with security events.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD colspan="1" rowspan="1" width="33"&gt;&lt;IMG alt="" height="31" src="https://ip1.i.lithium.com/cc46d54de9350bd602861238bf3f85f682472b9d/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f69636f6e362e706e67" width="29" /&gt;&lt;/TD&gt;&lt;TD colspan="1" rowspan="1" width="591"&gt;Audit failure is associated with security events.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;
&lt;P&gt;Event Viewer Detail pane showing errors and warnings:&lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" height="591" src="https://ip1.i.lithium.com/067e712558755c8be4d0b44deb8cdaf4a40589c7/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f50696374757265312d382e706e67" width="949" /&gt;&lt;/P&gt;
&lt;P&gt;Click on an event to display the detailed information. In this example, we can see the highlighted event’s source (TerminalServices-Printers) and the date and time it occurred. The&amp;nbsp;&lt;STRONG&gt;General&amp;nbsp;&lt;/STRONG&gt;tab shows more information: a printer driver needs to be installed.&lt;/P&gt;
&lt;P&gt;Event Viewer Detail pane General tab:&lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" height="512" src="https://ip1.i.lithium.com/5412212e3f0df328e9e951266346964854efd878/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f50696374757265312d392e706e67" width="929" /&gt;&lt;/P&gt;
&lt;P&gt;Open the&amp;nbsp;&lt;STRONG&gt;Details&amp;nbsp;&lt;/STRONG&gt;tab to view the raw event data. You can switch between&amp;nbsp;&lt;STRONG&gt;Friendly View&lt;/STRONG&gt;&amp;nbsp;and&amp;nbsp;&lt;STRONG&gt;XML View&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" height="439" src="https://ip1.i.lithium.com/3953613e526255629b485d61192e23f5efd6f376/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f50696374757265312d31302e706e67" width="927" /&gt;&lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" height="441" src="https://ip1.i.lithium.com/c5a118aea8cd4b16784f58f6ff95890639307a7e/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f50696374757265312d31312e706e67" width="927" /&gt;&lt;/P&gt;
&lt;P&gt;You can right-click on an event and select&amp;nbsp;&lt;STRONG&gt;Copy&lt;/STRONG&gt;&amp;nbsp;&amp;gt;&amp;nbsp;&lt;STRONG&gt;Copy Details as Text&lt;/STRONG&gt;&amp;nbsp;then paste the results into a text editor. The system fields are listed, followed by the entire event as XML.&lt;/P&gt;
&lt;P&gt;For this critical error, we can see the system had shut down unexpectedly.&lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" height="1062" src="https://ip1.i.lithium.com/7e4daaf81c0a848aef40f0f6199cd8df92c93ca5/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f50696374757265312d31322e706e67" width="974" /&gt;&lt;/P&gt;
&lt;H3&gt;Actions Pane&lt;/H3&gt;
&lt;P&gt;The Actions pane provides quick access to actions available for your current selections. The Action pane is divided into two sections:&lt;/P&gt;
&lt;UL&gt;&lt;LI&gt;Actions available for the selected Navigation pane log&lt;/LI&gt;&lt;LI&gt;Actions available for the selected Detail pane event&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;In this example, we have selected the&amp;nbsp;&lt;STRONG&gt;Application&amp;nbsp;&lt;/STRONG&gt;log and&amp;nbsp;&lt;STRONG&gt;Event 9027, Desktop Window Manager&lt;/STRONG&gt;:&lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" height="849" src="https://ip1.i.lithium.com/ee4650bd3962102e5a3f858ba2b5673ea90edcdc/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f50696374757265312d31332e706e67" width="562" /&gt;&lt;/P&gt;
&lt;P&gt;As you can see, there are a number of actions possible when a particular event log is active. For example, click&amp;nbsp;&lt;STRONG&gt;Filter Current Log&amp;nbsp;&lt;/STRONG&gt;to search for a particular event or group of events. The pop-up window enables you to specify query criteria. When you click&amp;nbsp;&lt;STRONG&gt;OK&lt;/STRONG&gt;, your filtered results are shown in the Details pane.&lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" height="839" src="https://ip1.i.lithium.com/0988ab987bda06e30052a10bf0157b968789e74b/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f50696374757265312d31342e706e67" width="835" /&gt;&lt;/P&gt;
&lt;H4&gt;Clearing Large Logs&lt;/H4&gt;
&lt;P&gt;You can do some housekeeping on the selected log with the&amp;nbsp;&lt;STRONG&gt;Clear Log&lt;/STRONG&gt;&amp;nbsp;action if it becomes too large. This deletes all events stored in the log. To check the size of your log files, select&amp;nbsp;&lt;STRONG&gt;Windows Logs&lt;/STRONG&gt;&amp;nbsp;or&amp;nbsp;&lt;STRONG&gt;Applications and Services Logs&lt;/STRONG&gt;&amp;nbsp;from the Navigation pane. The&amp;nbsp;&lt;STRONG&gt;Number of Events&lt;/STRONG&gt;&amp;nbsp;and&amp;nbsp;&lt;STRONG&gt;Size&amp;nbsp;&lt;/STRONG&gt;are shown in the Detail pane.&lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" height="454" src="https://ip1.i.lithium.com/c8d2ce9247890825429bf97f6415eddedf9939f5/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f50696374757265312d31352e706e67" width="943" /&gt;&lt;/P&gt;
&lt;H4&gt;Exporting Events&lt;/H4&gt;
&lt;P&gt;You can click&amp;nbsp;&lt;STRONG&gt;Save All Events As&lt;/STRONG&gt;&amp;nbsp;or&amp;nbsp;&lt;STRONG&gt;Save All Events in Custom View As&lt;/STRONG&gt;&amp;nbsp;(selected events) or&amp;nbsp;&lt;STRONG&gt;Save All Events As&lt;/STRONG&gt;&amp;nbsp;(all events) to export events from the current log to an event file. The event file has an EVTX extension.&lt;/P&gt;
&lt;P&gt;Where would you use such functionality? Suppose you want to send your system’s health status to a third-party vendor—you can provide them with an exported event file. Or, you can archive your logs before deleting them, or send your saved logs to a centralized backup medium. Saving event logs to an event file comes in handy. Administrators click on&amp;nbsp;&lt;STRONG&gt;Open Saved Log&lt;/STRONG&gt;&amp;nbsp;and navigate to the log location to open the saved log.&lt;/P&gt;
&lt;H3&gt;Custom Views&lt;/H3&gt;
&lt;P&gt;Event Viewer enables you to easily create custom views. This provides quick access if you are interested in certain types of event or events based on severity level.&lt;/P&gt;
&lt;P&gt;Create a Custom View:&lt;/P&gt;
&lt;OL&gt;&lt;LI&gt;Select&amp;nbsp;&lt;STRONG&gt;Custom Views&lt;/STRONG&gt;&amp;nbsp;in the Navigation pane.&lt;/LI&gt;&lt;LI&gt;Click&amp;nbsp;&lt;STRONG&gt;Create Custom View&lt;/STRONG&gt;&amp;nbsp;in the Actions pane.&lt;/LI&gt;&lt;LI&gt;Enter the criteria for the events to be included in the Custom View. This example illustrates creating a custom view to capture Critical and Error events for the .NET Runtime services running on the local machine.&lt;BR /&gt; &lt;IMG alt="" height="839" src="https://ip1.i.lithium.com/5f6810ab11f0f825b8b53dc5afa77f90cbbe36ca/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f50696374757265312d31372e706e67" width="833" /&gt;&lt;/LI&gt;&lt;LI&gt;Click&amp;nbsp;&lt;STRONG&gt;OK&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Enter the&amp;nbsp;&lt;STRONG&gt;Name&lt;/STRONG&gt;&amp;nbsp;and&amp;nbsp;&lt;STRONG&gt;Description&amp;nbsp;&lt;/STRONG&gt;and select the location for the Custom View.&lt;BR /&gt; &lt;IMG alt="" height="516" src="https://ip1.i.lithium.com/97deb36a9265e8f2928353f1b347907aadb39a82/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f50696374757265312d31382e706e67" width="600" /&gt;&lt;/LI&gt;&lt;LI&gt;Click&amp;nbsp;&lt;STRONG&gt;OK&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;Your Custom View is now available.&lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" height="433" src="https://ip1.i.lithium.com/23a32d4ad35624f9494ac75216bbdc4c7dfeaf96/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f50696374757265312d31392e706e67" width="343" /&gt;&lt;/P&gt;
&lt;P&gt;Similar to saving logs in an event file, you can export Custom Views.&lt;/P&gt;
&lt;OL&gt;&lt;LI&gt;Select the Custom View in the Navigation pane.&lt;/LI&gt;&lt;LI&gt;Click&amp;nbsp;&lt;STRONG&gt;Export Custom View&lt;/STRONG&gt;&amp;nbsp;in the Actions pane.&lt;/LI&gt;&lt;LI&gt;Enter a name for the XML file to create for the Custom View.&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;The XML file can be imported into Event Viewer on another system by clicking&amp;nbsp;&lt;STRONG&gt;Import Custom View&lt;/STRONG&gt;&amp;nbsp;and navigating to the location of the file.&lt;/P&gt;
&lt;H3&gt;Summary Views&lt;/H3&gt;
&lt;P&gt;&lt;STRONG&gt;Event Viewer (Local)&lt;/STRONG&gt;&amp;nbsp;is the top node in the Navigation pane. When selected, the Overview and Summary displays in the Details pane.&lt;/P&gt;
&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Summary of Administration Events&lt;/STRONG&gt;&amp;nbsp;displays totals for all Event Types over the course of the week.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Recently Viewed Nodes&lt;/STRONG&gt;&amp;nbsp;displays a history of the viewed nodes in chronological order. Double-click on a node to open the location.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Log Summary&lt;/STRONG&gt;&amp;nbsp;displays the major properties of each log file. Double-click to open the events for the log.&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;&lt;IMG alt="" height="1145" src="https://ip1.i.lithium.com/061379f7d02fd1b92e9fdf055ce9ad3c189cc8cd/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f50696374757265312d32302e706e67" width="949" /&gt;&lt;/P&gt;
&lt;P&gt;Looking at this example, there were six errors trapped in the last hour, and the number of errors in the last week was 18. Click&amp;nbsp;&lt;STRONG&gt;+&lt;/STRONG&gt;&amp;nbsp;to expand the&amp;nbsp;&lt;STRONG&gt;Error&amp;nbsp;&lt;/STRONG&gt;listing:&lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" height="187" src="https://ip1.i.lithium.com/71e5b5a8607c88101707fdfea0ef074925b320ca/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f50696374757265312d32312e706e67" width="741" /&gt;&lt;/P&gt;
&lt;P&gt;Double-click on an error to open it in the Details pane.&lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" height="854" src="https://ip1.i.lithium.com/bd693e2905c5d7e3d5ee273ffcc5ddfb438241aa/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f50696374757265312d32322e706e67" width="947" /&gt;&lt;/P&gt;
&lt;H2&gt;Other Application Logs&lt;/H2&gt;
&lt;P&gt;There are other logs with their own event viewing mechanisms in Windows:&lt;/P&gt;
&lt;UL&gt;&lt;LI&gt;DNS Manager&lt;/LI&gt;&lt;LI&gt;Failover Cluster Manager&lt;/LI&gt;&lt;LI&gt;IIS Access&lt;/LI&gt;&lt;LI&gt;Task Scheduler History&lt;/LI&gt;&lt;LI&gt;Windows Component Service&lt;/LI&gt;&lt;/UL&gt;
&lt;H3&gt;DNS Manager&lt;/H3&gt;
&lt;P&gt;If the Windows Server is provisioned as a Domain Name Service (DNS) server, the&amp;nbsp;&lt;STRONG&gt;DNS Manager&lt;/STRONG&gt;&amp;nbsp;is installed. In small networks, this is typically the Active Directory Domain Server.&lt;/P&gt;
&lt;P&gt;DNS Manager has its own list of events:&lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" height="600" src="https://ip1.i.lithium.com/af817da9f49646d95c7f2e30197bf343bdebb7cd/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f50696374757265312d32332e706e67" width="974" /&gt;&lt;/P&gt;
&lt;H3&gt;Failover Cluster Manager&lt;/H3&gt;
&lt;P&gt;&lt;STRONG&gt;Windows Server Failover Clustering&lt;/STRONG&gt;&amp;nbsp;service enables two or more Windows servers to work as a&amp;nbsp;&lt;EM&gt;cluster&lt;/EM&gt;—a fault tolerant configuration where one server’s physical hardware failure is automatically detected and replaced by the other server. Windows Server Failover Clustering service automatically re-routes all network traffic to the healthy instance, creating a highly available environment. In a cluster, applications connect to a common access point—a virtual IP or a cluster name—and Windows routes all traffic to the correct node. When a fault does happen, applications continue to work as usual. Windows Server Failover Clustering is used as the foundation of modern SQL Server HA solutions like&amp;nbsp;&lt;STRONG&gt;AlwaysOn Availability Groups&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;The Failover Cluster Manager is a Windows built-in application with its own Event Viewer. Using this Event Viewer, system administrators can troubleshoot when their cluster fails or stops functioning as expected. The following screenshot shows the Cluster Manager event viewer node in the Navigation pane. Selecting this node will show cluster-related events.&lt;/P&gt;
&lt;H3&gt;&lt;IMG alt="" height="683" src="https://ip1.i.lithium.com/0e215220fbf3297acc9a1d341bfe1bfac60476b5/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f50696374757265312d32342e706e67" width="568" /&gt;&lt;/H3&gt;
&lt;H3&gt;IIS Access Logs&lt;/H3&gt;
&lt;P&gt;The&amp;nbsp;&lt;STRONG&gt;Internet Information Services&lt;/STRONG&gt;&amp;nbsp;access logs include information about requested URIs and status indicating whether the response was successfully served. It writes these logs as files in the&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/iis/manage/provisioning-and-managing-iis/configure-logging-in-iis" target="_blank"&gt;W3C Extended Log Format&lt;/A&gt;. This format is a type of comma-separated value (CSV). The log file location is specified within the IIS Manager Logging settings. By default, the location is:&lt;/P&gt;
&lt;PRE&gt;
%SystemDrive%\inetpub\logs\LogFiles&lt;/PRE&gt;
&lt;P&gt;For example, here’s a log file on&amp;nbsp;&lt;STRONG&gt;C:&lt;/STRONG&gt;, with&amp;nbsp;&lt;STRONG&gt;W3SVC1&amp;nbsp;&lt;/STRONG&gt;as the virtual host and&amp;nbsp;&lt;STRONG&gt;u_ex150428&lt;/STRONG&gt;&amp;nbsp;as a file name coded with the date 2015-04-28:&lt;/P&gt;
&lt;PRE&gt;
C:\inetpub\logs\LogFiles\W3SVC1u_ex150428.log&lt;/PRE&gt;
&lt;P&gt;Here’s an excerpt from the log file. The column definition is in a comment. The request for&amp;nbsp;&lt;STRONG&gt;/manager/html&lt;/STRONG&gt;&amp;nbsp;returned a&amp;nbsp;&lt;STRONG&gt;404&lt;/STRONG&gt;&amp;nbsp;status code as the page doesn’t exist.&lt;/P&gt;
&lt;PRE&gt;
#Software: Microsoft Internet Information Services 7.5

#Version: 1.0

#Date: 2015-04-28 12:12:05

#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip

2015-04-28 02:51:38 10.211.14.109 GET /manager/html - 80 - 222.186.56.21 Mozilla/5.0+(compatible;+MSIE+10.0;+Windows+NT+6.2;+WOW64;+Trident/6.0) - 404 0 64 4850&lt;/PRE&gt;
&lt;H3&gt;Task Scheduler History Logs&lt;/H3&gt;
&lt;P&gt;&lt;STRONG&gt;Task Scheduler&lt;/STRONG&gt;&amp;nbsp;runs background tasks and applications on a scheduled basis, much like the Linux cron subsystem. An example is a nightly backup script that backs up local SQL Server databases.&lt;/P&gt;
&lt;P&gt;Each task has associated history events you can view in the Task Scheduler Detail pane:&lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" height="881" src="https://ip1.i.lithium.com/ba2fc8d2466e2c661640618672f299d3d7bfd463/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f50696374757265312d32352e706e67" width="974" /&gt;&lt;/P&gt;
&lt;H2&gt;In Summary&lt;/H2&gt;
&lt;P&gt;Windows and associated applications record various events in multiple logs. Trapping and understanding these events are a key part of a system administrator’s role. This guide explores how you can use different methods to collect, centralize, and protect these logs.&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jul 2024 10:06:54 GMT</pubDate>
    <dc:creator>CyberArkAlumni</dc:creator>
    <dc:date>2024-07-17T10:06:54Z</dc:date>
    <item>
      <title>What are the basics for Windows Logging?</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-articles/what-are-the-basics-for-windows-logging/ta-p/1428632</link>
      <description>&lt;H3&gt;Question&lt;/H3&gt;
What are the basics for Windows Logging?

&lt;H3&gt;Answer&lt;/H3&gt;
&lt;H1&gt;Windows Logging Basics&lt;/H1&gt;
&lt;P&gt;Logs are records of events that happen in your computer, either by a person or by a running process. They help you track what happened and troubleshoot problems.&lt;/P&gt;
&lt;P&gt;The Windows event log contains logs from the operating system and applications such as SQL Server or Internet Information Services (IIS). The logs use a structured data format, making them easy to search and analyze. Some applications also write to log files in text format. For example, IIS Access Logs.&lt;/P&gt;
&lt;P&gt;This article explores the&amp;nbsp;&lt;STRONG&gt;Event Viewer&lt;/STRONG&gt;&amp;nbsp;interface and features, and introduces other major application and services logs. Examples are provided to give you a full grasp of how monitoring events can help you manage your systems for health and security.&lt;/P&gt;
&lt;H2&gt;Windows Event Logs&lt;/H2&gt;
&lt;P&gt;&lt;STRONG&gt;Windows Event Viewer&lt;/STRONG&gt;&amp;nbsp;displays the Windows event logs. Use this application to view and navigate the logs, search and filter particular types of logs, export logs for analysis, and more. We’ll show you how to access Windows Event Viewer and demonstrate available features.&lt;/P&gt;
&lt;H2&gt;Starting Windows Event Viewer&lt;/H2&gt;
&lt;P&gt;Windows Server 2019 Event Viewer can be accessed in several ways:&lt;/P&gt;
&lt;UL&gt;&lt;LI&gt;Windows Control Panel&lt;/LI&gt;&lt;LI&gt;Server Manager&lt;/LI&gt;&lt;LI&gt;Windows Admin Center&lt;/LI&gt;&lt;LI&gt;Computer Management&lt;/LI&gt;&lt;LI&gt;Component Services&lt;/LI&gt;&lt;LI&gt;Command Prompt&lt;/LI&gt;&lt;/UL&gt;
&lt;H3&gt;Windows Control Panel&lt;/H3&gt;
&lt;P&gt;Control Panel is the standard Windows component for viewing and changing system settings. It can be found in Windows Server and Windows desktop editions. To access the Event Viewer:&lt;/P&gt;
&lt;OL&gt;&lt;LI&gt;Open&amp;nbsp;&lt;STRONG&gt;Control Panel&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Click&amp;nbsp;&lt;STRONG&gt;Administrative Tools&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Double-click&amp;nbsp;&lt;STRONG&gt;Event Viewer&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;&lt;IMG alt="" height="397" src="https://ip1.i.lithium.com/399d7b8a7315367785a6f5af1d106677b34c4f0b/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f50696374757265312d312e706e67" width="791" /&gt;&lt;/P&gt;
&lt;H3&gt;Server Manager&lt;/H3&gt;
&lt;P&gt;The Server Manager console lets you manage settings on the local server and on remote servers. To access Event Viewer from Server Manager:&lt;/P&gt;
&lt;OL&gt;&lt;LI&gt;Open&amp;nbsp;&lt;STRONG&gt;Server Manager&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Open&amp;nbsp;&lt;STRONG&gt;Tools&amp;nbsp;&lt;/STRONG&gt;&amp;gt;&amp;nbsp;&lt;STRONG&gt;Event Viewer&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;&lt;IMG alt="" height="375" src="https://ip1.i.lithium.com/e3740bf69e2b1e65b1ff6c2df8479c4ecc6c9f5e/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f50696374757265312d322e706e67" width="974" /&gt;&lt;/P&gt;
&lt;H3&gt;Windows Admin Center&lt;/H3&gt;
&lt;P&gt;Windows Admin Center is a browser-based application for managing servers, clusters, desktop PCs, and other infrastructure components. To access Event Viewer from the Windows Admin Center:&lt;/P&gt;
&lt;OL&gt;&lt;LI&gt;Open&amp;nbsp;&lt;STRONG&gt;Windows Admin Center&lt;/STRONG&gt;&amp;nbsp;in a supported browser.&lt;/LI&gt;&lt;/OL&gt;
&lt;OL&gt;&lt;LI&gt;Click&amp;nbsp;&lt;STRONG&gt;Events&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;&lt;IMG alt="" height="525" src="https://ip1.i.lithium.com/ebe101db5d138de59ac7823a8f576a2f293f0d01/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f50696374757265312d332e706e67" width="974" /&gt;&lt;/P&gt;
&lt;H3&gt;Computer Management&lt;/H3&gt;
&lt;P&gt;The Computer Management console provides access to administrative tasks on a local or remote server. To open Event Viewer from Computer Management:&lt;/P&gt;
&lt;OL&gt;&lt;LI&gt;Open&amp;nbsp;&lt;STRONG&gt;Computer Management&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Click&amp;nbsp;&lt;STRONG&gt;Event Viewer&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;&lt;IMG alt="" height="462" src="https://ip1.i.lithium.com/cc8c377c764937dbe2fd4c85abf0eb7457b82d81/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f50696374757265312d342e706e67" width="974" /&gt;&lt;/P&gt;
&lt;H3&gt;Windows Component Service&lt;/H3&gt;
&lt;P&gt;Another built-in application is the Windows Component Services Manager that enables us to configure DCOM applications running on Windows. Windows Event Viewer is accessible from Component Services Manager as well:&lt;/P&gt;
&lt;OL&gt;&lt;LI&gt;Open&amp;nbsp;&lt;STRONG&gt;Component Services&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Click&amp;nbsp;&lt;STRONG&gt;Event Viewer&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;H3&gt;&lt;IMG alt="" height="625" src="https://ip1.i.lithium.com/dfa0defab2486e18c91a4140ffc13a26f07b4494/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f50696374757265312d352e706e67" width="974" /&gt;&lt;/H3&gt;
&lt;H3&gt;Command Prompt&lt;/H3&gt;
&lt;P&gt;Lastly, you can open the Event Viewer directly from a command prompt. To do so:&lt;/P&gt;
&lt;OL&gt;&lt;LI&gt;Open a&amp;nbsp;&lt;STRONG&gt;Command Prompt&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Type:&amp;nbsp;&lt;STRONG&gt;eventvwr&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;H2&gt;Using the Windows Event Viewer Interface&lt;/H2&gt;
&lt;P&gt;Event Viewer has an intuitive user interface. The main screen is divided into three sections:&lt;/P&gt;
&lt;UL&gt;&lt;LI&gt;Navigation pane&lt;/LI&gt;&lt;LI&gt;Detail pane&lt;/LI&gt;&lt;LI&gt;Action pane&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;You can create Summary and Custom views. We’ll guide you through these options.&lt;/P&gt;
&lt;H3&gt;Navigation Pane&lt;/H3&gt;
&lt;P&gt;The Navigation pane is where you choose the event log to view. By default, there are five categories of Windows logs:&lt;/P&gt;
&lt;UL&gt;&lt;LI&gt;Application – Information logged by applications hosted on the local machine.&lt;/LI&gt;&lt;LI&gt;Security – Information related to login attempts (success and failure), elevated privileges, and other audited events.&lt;/LI&gt;&lt;LI&gt;Setup – Messages generated when installing and upgrading the Windows operating system. If the Windows system is a domain controller, those messages are also logged here.&lt;/LI&gt;&lt;LI&gt;System – Messages generated by the Windows operating system.&lt;/LI&gt;&lt;LI&gt;Forwarded Events – Events forwarded by other computers when the local machine is functioning as a central subscriber.&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;There is also a section for Applications and Services Logs, including categories for Hardware Events, Internet Explorer and Windows PowerShell events.&lt;/P&gt;
&lt;P&gt;Event Viewer Navigation pane:&lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" height="668" src="https://ip1.i.lithium.com/69bc41d5ce983244fc9787f837dbe2d953c2e9c7/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f50696374757265312d362e706e67" width="343" /&gt;&lt;/P&gt;
&lt;H3&gt;Detail Pane&lt;/H3&gt;
&lt;P&gt;When Event Viewer is opened, the Detail pane displays the Overview and Summary. We’ll discuss the&amp;nbsp;&lt;A href="https://www.loggly.com/ultimate-guide/windows-logging-basics/#bookmark=id.9y7qf1gi7qjk" target="_blank"&gt;Summary Views&lt;/A&gt;&amp;nbsp;later. Select an item from the Navigation pane to see a list of events.&lt;/P&gt;
&lt;P&gt;Event entries are listed by default in chronological order with the latest events at the top. Click on any column header to sort events by that field in ascending or descending order. Clicking a second time in the same column head reverses the sort order. For example, click on&amp;nbsp;&lt;STRONG&gt;Level&amp;nbsp;&lt;/STRONG&gt;to sort by severity. A caret&amp;nbsp;&lt;STRONG&gt;^&lt;/STRONG&gt;&amp;nbsp;symbol or reverse caret indicates the sort field and direction of the sort.&lt;/P&gt;
&lt;P&gt;Each event has a severity&amp;nbsp;&lt;STRONG&gt;Level&lt;/STRONG&gt;:&lt;/P&gt;
&lt;TABLE width="624"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD colspan="1" rowspan="1" width="33"&gt;&lt;IMG alt="" height="33" src="https://ip1.i.lithium.com/f036960f3e305d1c05e543209f4f2f90fd858e4d/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f69636f6e312e706e67" width="31" /&gt;&lt;/TD&gt;&lt;TD colspan="1" rowspan="1" width="591"&gt;Information&amp;nbsp;messages indicate a successful action.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD colspan="1" rowspan="1" width="33"&gt;&lt;IMG alt="" height="33" src="https://ip1.i.lithium.com/580a954f8ca5d47cb76c6a7ad6d44f0a86e3084e/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f69636f6e322e706e67" width="27" /&gt;&lt;/TD&gt;&lt;TD colspan="1" rowspan="1" width="591"&gt;Warning&amp;nbsp;messages indicate an event occurred that might become a problem.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD colspan="1" rowspan="1" width="33"&gt;&lt;IMG alt="" height="33" src="https://ip1.i.lithium.com/bfd9e6569f99f4f6d659adb640de47754c7aaae3/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f69636f6e332e706e67" width="31" /&gt;&lt;/TD&gt;&lt;TD colspan="1" rowspan="1" width="591"&gt;Error&amp;nbsp;messages indicate a significant problem occurred.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD colspan="1" rowspan="1" width="33"&gt;&lt;IMG alt="" height="37" src="https://ip1.i.lithium.com/95dc36d7262d4287a51bfe656f0bc94899147fbe/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f69636f6e342e706e67" width="31" /&gt;&lt;/TD&gt;&lt;TD colspan="1" rowspan="1" width="591"&gt;Critical messages indicate a severe problem occurred.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD colspan="1" rowspan="1" width="33"&gt;&lt;IMG alt="" height="43" src="https://ip1.i.lithium.com/ff44fecd6fae57007df0c2a0517c003944a306f3/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f69636f6e352e706e67" width="43" /&gt;&lt;/TD&gt;&lt;TD colspan="1" rowspan="1" width="591"&gt;Audit success is associated with security events.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD colspan="1" rowspan="1" width="33"&gt;&lt;IMG alt="" height="31" src="https://ip1.i.lithium.com/cc46d54de9350bd602861238bf3f85f682472b9d/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f69636f6e362e706e67" width="29" /&gt;&lt;/TD&gt;&lt;TD colspan="1" rowspan="1" width="591"&gt;Audit failure is associated with security events.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;
&lt;P&gt;Event Viewer Detail pane showing errors and warnings:&lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" height="591" src="https://ip1.i.lithium.com/067e712558755c8be4d0b44deb8cdaf4a40589c7/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f50696374757265312d382e706e67" width="949" /&gt;&lt;/P&gt;
&lt;P&gt;Click on an event to display the detailed information. In this example, we can see the highlighted event’s source (TerminalServices-Printers) and the date and time it occurred. The&amp;nbsp;&lt;STRONG&gt;General&amp;nbsp;&lt;/STRONG&gt;tab shows more information: a printer driver needs to be installed.&lt;/P&gt;
&lt;P&gt;Event Viewer Detail pane General tab:&lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" height="512" src="https://ip1.i.lithium.com/5412212e3f0df328e9e951266346964854efd878/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f50696374757265312d392e706e67" width="929" /&gt;&lt;/P&gt;
&lt;P&gt;Open the&amp;nbsp;&lt;STRONG&gt;Details&amp;nbsp;&lt;/STRONG&gt;tab to view the raw event data. You can switch between&amp;nbsp;&lt;STRONG&gt;Friendly View&lt;/STRONG&gt;&amp;nbsp;and&amp;nbsp;&lt;STRONG&gt;XML View&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" height="439" src="https://ip1.i.lithium.com/3953613e526255629b485d61192e23f5efd6f376/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f50696374757265312d31302e706e67" width="927" /&gt;&lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" height="441" src="https://ip1.i.lithium.com/c5a118aea8cd4b16784f58f6ff95890639307a7e/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f50696374757265312d31312e706e67" width="927" /&gt;&lt;/P&gt;
&lt;P&gt;You can right-click on an event and select&amp;nbsp;&lt;STRONG&gt;Copy&lt;/STRONG&gt;&amp;nbsp;&amp;gt;&amp;nbsp;&lt;STRONG&gt;Copy Details as Text&lt;/STRONG&gt;&amp;nbsp;then paste the results into a text editor. The system fields are listed, followed by the entire event as XML.&lt;/P&gt;
&lt;P&gt;For this critical error, we can see the system had shut down unexpectedly.&lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" height="1062" src="https://ip1.i.lithium.com/7e4daaf81c0a848aef40f0f6199cd8df92c93ca5/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f50696374757265312d31322e706e67" width="974" /&gt;&lt;/P&gt;
&lt;H3&gt;Actions Pane&lt;/H3&gt;
&lt;P&gt;The Actions pane provides quick access to actions available for your current selections. The Action pane is divided into two sections:&lt;/P&gt;
&lt;UL&gt;&lt;LI&gt;Actions available for the selected Navigation pane log&lt;/LI&gt;&lt;LI&gt;Actions available for the selected Detail pane event&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;In this example, we have selected the&amp;nbsp;&lt;STRONG&gt;Application&amp;nbsp;&lt;/STRONG&gt;log and&amp;nbsp;&lt;STRONG&gt;Event 9027, Desktop Window Manager&lt;/STRONG&gt;:&lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" height="849" src="https://ip1.i.lithium.com/ee4650bd3962102e5a3f858ba2b5673ea90edcdc/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f50696374757265312d31332e706e67" width="562" /&gt;&lt;/P&gt;
&lt;P&gt;As you can see, there are a number of actions possible when a particular event log is active. For example, click&amp;nbsp;&lt;STRONG&gt;Filter Current Log&amp;nbsp;&lt;/STRONG&gt;to search for a particular event or group of events. The pop-up window enables you to specify query criteria. When you click&amp;nbsp;&lt;STRONG&gt;OK&lt;/STRONG&gt;, your filtered results are shown in the Details pane.&lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" height="839" src="https://ip1.i.lithium.com/0988ab987bda06e30052a10bf0157b968789e74b/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f50696374757265312d31342e706e67" width="835" /&gt;&lt;/P&gt;
&lt;H4&gt;Clearing Large Logs&lt;/H4&gt;
&lt;P&gt;You can do some housekeeping on the selected log with the&amp;nbsp;&lt;STRONG&gt;Clear Log&lt;/STRONG&gt;&amp;nbsp;action if it becomes too large. This deletes all events stored in the log. To check the size of your log files, select&amp;nbsp;&lt;STRONG&gt;Windows Logs&lt;/STRONG&gt;&amp;nbsp;or&amp;nbsp;&lt;STRONG&gt;Applications and Services Logs&lt;/STRONG&gt;&amp;nbsp;from the Navigation pane. The&amp;nbsp;&lt;STRONG&gt;Number of Events&lt;/STRONG&gt;&amp;nbsp;and&amp;nbsp;&lt;STRONG&gt;Size&amp;nbsp;&lt;/STRONG&gt;are shown in the Detail pane.&lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" height="454" src="https://ip1.i.lithium.com/c8d2ce9247890825429bf97f6415eddedf9939f5/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f50696374757265312d31352e706e67" width="943" /&gt;&lt;/P&gt;
&lt;H4&gt;Exporting Events&lt;/H4&gt;
&lt;P&gt;You can click&amp;nbsp;&lt;STRONG&gt;Save All Events As&lt;/STRONG&gt;&amp;nbsp;or&amp;nbsp;&lt;STRONG&gt;Save All Events in Custom View As&lt;/STRONG&gt;&amp;nbsp;(selected events) or&amp;nbsp;&lt;STRONG&gt;Save All Events As&lt;/STRONG&gt;&amp;nbsp;(all events) to export events from the current log to an event file. The event file has an EVTX extension.&lt;/P&gt;
&lt;P&gt;Where would you use such functionality? Suppose you want to send your system’s health status to a third-party vendor—you can provide them with an exported event file. Or, you can archive your logs before deleting them, or send your saved logs to a centralized backup medium. Saving event logs to an event file comes in handy. Administrators click on&amp;nbsp;&lt;STRONG&gt;Open Saved Log&lt;/STRONG&gt;&amp;nbsp;and navigate to the log location to open the saved log.&lt;/P&gt;
&lt;H3&gt;Custom Views&lt;/H3&gt;
&lt;P&gt;Event Viewer enables you to easily create custom views. This provides quick access if you are interested in certain types of event or events based on severity level.&lt;/P&gt;
&lt;P&gt;Create a Custom View:&lt;/P&gt;
&lt;OL&gt;&lt;LI&gt;Select&amp;nbsp;&lt;STRONG&gt;Custom Views&lt;/STRONG&gt;&amp;nbsp;in the Navigation pane.&lt;/LI&gt;&lt;LI&gt;Click&amp;nbsp;&lt;STRONG&gt;Create Custom View&lt;/STRONG&gt;&amp;nbsp;in the Actions pane.&lt;/LI&gt;&lt;LI&gt;Enter the criteria for the events to be included in the Custom View. This example illustrates creating a custom view to capture Critical and Error events for the .NET Runtime services running on the local machine.&lt;BR /&gt; &lt;IMG alt="" height="839" src="https://ip1.i.lithium.com/5f6810ab11f0f825b8b53dc5afa77f90cbbe36ca/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f50696374757265312d31372e706e67" width="833" /&gt;&lt;/LI&gt;&lt;LI&gt;Click&amp;nbsp;&lt;STRONG&gt;OK&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;Enter the&amp;nbsp;&lt;STRONG&gt;Name&lt;/STRONG&gt;&amp;nbsp;and&amp;nbsp;&lt;STRONG&gt;Description&amp;nbsp;&lt;/STRONG&gt;and select the location for the Custom View.&lt;BR /&gt; &lt;IMG alt="" height="516" src="https://ip1.i.lithium.com/97deb36a9265e8f2928353f1b347907aadb39a82/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f50696374757265312d31382e706e67" width="600" /&gt;&lt;/LI&gt;&lt;LI&gt;Click&amp;nbsp;&lt;STRONG&gt;OK&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;Your Custom View is now available.&lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" height="433" src="https://ip1.i.lithium.com/23a32d4ad35624f9494ac75216bbdc4c7dfeaf96/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f50696374757265312d31392e706e67" width="343" /&gt;&lt;/P&gt;
&lt;P&gt;Similar to saving logs in an event file, you can export Custom Views.&lt;/P&gt;
&lt;OL&gt;&lt;LI&gt;Select the Custom View in the Navigation pane.&lt;/LI&gt;&lt;LI&gt;Click&amp;nbsp;&lt;STRONG&gt;Export Custom View&lt;/STRONG&gt;&amp;nbsp;in the Actions pane.&lt;/LI&gt;&lt;LI&gt;Enter a name for the XML file to create for the Custom View.&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;The XML file can be imported into Event Viewer on another system by clicking&amp;nbsp;&lt;STRONG&gt;Import Custom View&lt;/STRONG&gt;&amp;nbsp;and navigating to the location of the file.&lt;/P&gt;
&lt;H3&gt;Summary Views&lt;/H3&gt;
&lt;P&gt;&lt;STRONG&gt;Event Viewer (Local)&lt;/STRONG&gt;&amp;nbsp;is the top node in the Navigation pane. When selected, the Overview and Summary displays in the Details pane.&lt;/P&gt;
&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Summary of Administration Events&lt;/STRONG&gt;&amp;nbsp;displays totals for all Event Types over the course of the week.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Recently Viewed Nodes&lt;/STRONG&gt;&amp;nbsp;displays a history of the viewed nodes in chronological order. Double-click on a node to open the location.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Log Summary&lt;/STRONG&gt;&amp;nbsp;displays the major properties of each log file. Double-click to open the events for the log.&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;&lt;IMG alt="" height="1145" src="https://ip1.i.lithium.com/061379f7d02fd1b92e9fdf055ce9ad3c189cc8cd/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f50696374757265312d32302e706e67" width="949" /&gt;&lt;/P&gt;
&lt;P&gt;Looking at this example, there were six errors trapped in the last hour, and the number of errors in the last week was 18. Click&amp;nbsp;&lt;STRONG&gt;+&lt;/STRONG&gt;&amp;nbsp;to expand the&amp;nbsp;&lt;STRONG&gt;Error&amp;nbsp;&lt;/STRONG&gt;listing:&lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" height="187" src="https://ip1.i.lithium.com/71e5b5a8607c88101707fdfea0ef074925b320ca/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f50696374757265312d32312e706e67" width="741" /&gt;&lt;/P&gt;
&lt;P&gt;Double-click on an error to open it in the Details pane.&lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" height="854" src="https://ip1.i.lithium.com/bd693e2905c5d7e3d5ee273ffcc5ddfb438241aa/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f50696374757265312d32322e706e67" width="947" /&gt;&lt;/P&gt;
&lt;H2&gt;Other Application Logs&lt;/H2&gt;
&lt;P&gt;There are other logs with their own event viewing mechanisms in Windows:&lt;/P&gt;
&lt;UL&gt;&lt;LI&gt;DNS Manager&lt;/LI&gt;&lt;LI&gt;Failover Cluster Manager&lt;/LI&gt;&lt;LI&gt;IIS Access&lt;/LI&gt;&lt;LI&gt;Task Scheduler History&lt;/LI&gt;&lt;LI&gt;Windows Component Service&lt;/LI&gt;&lt;/UL&gt;
&lt;H3&gt;DNS Manager&lt;/H3&gt;
&lt;P&gt;If the Windows Server is provisioned as a Domain Name Service (DNS) server, the&amp;nbsp;&lt;STRONG&gt;DNS Manager&lt;/STRONG&gt;&amp;nbsp;is installed. In small networks, this is typically the Active Directory Domain Server.&lt;/P&gt;
&lt;P&gt;DNS Manager has its own list of events:&lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" height="600" src="https://ip1.i.lithium.com/af817da9f49646d95c7f2e30197bf343bdebb7cd/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f50696374757265312d32332e706e67" width="974" /&gt;&lt;/P&gt;
&lt;H3&gt;Failover Cluster Manager&lt;/H3&gt;
&lt;P&gt;&lt;STRONG&gt;Windows Server Failover Clustering&lt;/STRONG&gt;&amp;nbsp;service enables two or more Windows servers to work as a&amp;nbsp;&lt;EM&gt;cluster&lt;/EM&gt;—a fault tolerant configuration where one server’s physical hardware failure is automatically detected and replaced by the other server. Windows Server Failover Clustering service automatically re-routes all network traffic to the healthy instance, creating a highly available environment. In a cluster, applications connect to a common access point—a virtual IP or a cluster name—and Windows routes all traffic to the correct node. When a fault does happen, applications continue to work as usual. Windows Server Failover Clustering is used as the foundation of modern SQL Server HA solutions like&amp;nbsp;&lt;STRONG&gt;AlwaysOn Availability Groups&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;The Failover Cluster Manager is a Windows built-in application with its own Event Viewer. Using this Event Viewer, system administrators can troubleshoot when their cluster fails or stops functioning as expected. The following screenshot shows the Cluster Manager event viewer node in the Navigation pane. Selecting this node will show cluster-related events.&lt;/P&gt;
&lt;H3&gt;&lt;IMG alt="" height="683" src="https://ip1.i.lithium.com/0e215220fbf3297acc9a1d341bfe1bfac60476b5/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f50696374757265312d32342e706e67" width="568" /&gt;&lt;/H3&gt;
&lt;H3&gt;IIS Access Logs&lt;/H3&gt;
&lt;P&gt;The&amp;nbsp;&lt;STRONG&gt;Internet Information Services&lt;/STRONG&gt;&amp;nbsp;access logs include information about requested URIs and status indicating whether the response was successfully served. It writes these logs as files in the&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/iis/manage/provisioning-and-managing-iis/configure-logging-in-iis" target="_blank"&gt;W3C Extended Log Format&lt;/A&gt;. This format is a type of comma-separated value (CSV). The log file location is specified within the IIS Manager Logging settings. By default, the location is:&lt;/P&gt;
&lt;PRE&gt;
%SystemDrive%\inetpub\logs\LogFiles&lt;/PRE&gt;
&lt;P&gt;For example, here’s a log file on&amp;nbsp;&lt;STRONG&gt;C:&lt;/STRONG&gt;, with&amp;nbsp;&lt;STRONG&gt;W3SVC1&amp;nbsp;&lt;/STRONG&gt;as the virtual host and&amp;nbsp;&lt;STRONG&gt;u_ex150428&lt;/STRONG&gt;&amp;nbsp;as a file name coded with the date 2015-04-28:&lt;/P&gt;
&lt;PRE&gt;
C:\inetpub\logs\LogFiles\W3SVC1u_ex150428.log&lt;/PRE&gt;
&lt;P&gt;Here’s an excerpt from the log file. The column definition is in a comment. The request for&amp;nbsp;&lt;STRONG&gt;/manager/html&lt;/STRONG&gt;&amp;nbsp;returned a&amp;nbsp;&lt;STRONG&gt;404&lt;/STRONG&gt;&amp;nbsp;status code as the page doesn’t exist.&lt;/P&gt;
&lt;PRE&gt;
#Software: Microsoft Internet Information Services 7.5

#Version: 1.0

#Date: 2015-04-28 12:12:05

#Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip

2015-04-28 02:51:38 10.211.14.109 GET /manager/html - 80 - 222.186.56.21 Mozilla/5.0+(compatible;+MSIE+10.0;+Windows+NT+6.2;+WOW64;+Trident/6.0) - 404 0 64 4850&lt;/PRE&gt;
&lt;H3&gt;Task Scheduler History Logs&lt;/H3&gt;
&lt;P&gt;&lt;STRONG&gt;Task Scheduler&lt;/STRONG&gt;&amp;nbsp;runs background tasks and applications on a scheduled basis, much like the Linux cron subsystem. An example is a nightly backup script that backs up local SQL Server databases.&lt;/P&gt;
&lt;P&gt;Each task has associated history events you can view in the Task Scheduler Detail pane:&lt;/P&gt;
&lt;P&gt;&lt;IMG alt="" height="881" src="https://ip1.i.lithium.com/ba2fc8d2466e2c661640618672f299d3d7bfd463/68747470733a2f2f7777772e6c6f67676c792e636f6d2f77702d636f6e74656e742f75706c6f6164732f323031352f30392f50696374757265312d32352e706e67" width="974" /&gt;&lt;/P&gt;
&lt;H2&gt;In Summary&lt;/H2&gt;
&lt;P&gt;Windows and associated applications record various events in multiple logs. Trapping and understanding these events are a key part of a system administrator’s role. This guide explores how you can use different methods to collect, centralize, and protect these logs.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 10:06:54 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-articles/what-are-the-basics-for-windows-logging/ta-p/1428632</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2024-07-17T10:06:54Z</dc:date>
    </item>
  </channel>
</rss>

