Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
slapdash:windows_logging [2017/04/21 13:39] – mgupton | slapdash:windows_logging [2023/03/21 16:41] (current) – mgupton | ||
---|---|---|---|
Line 1: | Line 1: | ||
======Windows Logging (Slapdash)====== | ======Windows Logging (Slapdash)====== | ||
- | ======wevtutil====== | + | <WRAP round info> |
- | * // | + | This is a slapdash, slipshod, scattershot, |
- | * [[http:// | + | </WRAP> |
- | * [[http:// | + | |
- | ====Terminology==== | + | ======Terminology====== |
+ | * Windows Event Log | ||
* channels | * channels | ||
* publishers | * publishers | ||
Line 11: | Line 11: | ||
* streams | * streams | ||
- | ======Examples====== | + | ======wevtutil====== |
+ | * // | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | |||
+ | ======Specific Events of Note====== | ||
+ | * [[Windows Administrator Activity Events]] | ||
+ | |||
+ | ======Listing Log Channels and Publishers====== | ||
====Enumerate a list of all log channels==== | ====Enumerate a list of all log channels==== | ||
< | < | ||
Line 52: | Line 61: | ||
</ | </ | ||
- | |||
- | ====Log Message Query==== | ||
- | Query for logs in the // | ||
- | |||
- | < | ||
- | wevtutil qe System / | ||
- | Event[0]: | ||
- | Log Name: System | ||
- | Source: Microsoft-Windows-Winlogon | ||
- | Date: 2014-06-18T09: | ||
- | Event ID: 7001 | ||
- | Task: N/A | ||
- | Level: Information | ||
- | Opcode: Info | ||
- | Keyword: N/A | ||
- | User: S-1-5-18 | ||
- | User Name: NT AUTHORITY\SYSTEM | ||
- | Computer: E5420_MGupton.alertlogic.net | ||
- | Description: | ||
- | User Logon Notification for Customer Experience Improvement Program | ||
- | |||
- | </ | ||
=====Execute Against a Remote System===== | =====Execute Against a Remote System===== | ||
Line 86: | Line 73: | ||
======Event Queries====== | ======Event Queries====== | ||
+ | * The following shows how to query Windows Event Log for events. | ||
* One way to get the XPath queries used by the /q option of // | * One way to get the XPath queries used by the /q option of // | ||
- | Query the last 5 logs from the //Security// log channel. | + | ===Query the last 5 logs from the Security log channel.=== |
+ | |||
+ | * Using %%/ | ||
- | Using %%/ | ||
< | < | ||
- | wevtutil qe Security /c:5 /rd:true / | + | wevtutil qe Security /c:5 /rd:true /f:text |
</ | </ | ||
+ | < | ||
+ | wevtutil qe Security /c:5 /rd:true /f:text / | ||
+ | </ | ||
Example: | Example: | ||
Line 134: | Line 125: | ||
< | < | ||
wevtutil qe System / | wevtutil qe System / | ||
+ | </ | ||
+ | |||
+ | ====Log Message Query==== | ||
+ | Query for logs in the // | ||
+ | |||
+ | < | ||
+ | wevtutil qe System / | ||
+ | Event[0]: | ||
+ | Log Name: System | ||
+ | Source: Microsoft-Windows-Winlogon | ||
+ | Date: 2014-06-18T09: | ||
+ | Event ID: 7001 | ||
+ | Task: N/A | ||
+ | Level: Information | ||
+ | Opcode: Info | ||
+ | Keyword: N/A | ||
+ | User: S-1-5-18 | ||
+ | User Name: NT AUTHORITY\SYSTEM | ||
+ | Computer: E5420_MGupton.alertlogic.net | ||
+ | Description: | ||
+ | User Logon Notification for Customer Experience Improvement Program | ||
+ | |||
</ | </ | ||
Line 398: | Line 411: | ||
reg query hklm\system\currentcontrolset\services\eventlog | reg query hklm\system\currentcontrolset\services\eventlog | ||
</ | </ | ||
- | ======Resources====== | + | |
- | * [[https:// | + | |
======To Explore====== | ======To Explore====== | ||
Line 568: | Line 580: | ||
logman query providers | logman query providers | ||
</ | </ | ||
+ | |||
+ | ======Resources====== | ||
+ | * [[https:// | ||
+ | * webinars | ||
+ | * forum | ||
+ | * [[https:// | ||
+ | |||
+ | ====== Windows Object Auditing ====== | ||
+ | * #FIM | ||
+ | * [[https:// | ||
+ |