Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Event Viewer doc #442

Merged
merged 1 commit into from
Jul 8, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion content/integrations/eventviewer.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
title: Datadog-Event Viewer Integration
integration_title: Event Viewer
kind: integration
doclevel: basic
---

<div id="int-overview">
Expand All @@ -21,3 +20,23 @@ From the open-source Agent:
Event Viewer YAML example</a>
* <a href="https://github.com/DataDog/dd-agent/blob/master/checks.d/win32_event_log.py">
Event Viewer checks.d</a>

<h3>Configuration</h3>

Use the Windows Event Viewer GUI to list all the event logs you can capture with this integration.

To determine the exact values you can set your filters to, use the following PowerShell
command:

Get-WmiObject -Class Win32_NTLogEvent

For instance, to see the latest event logged in the `Security` LogFile, use:

Get-WmiObject -Class Win32_NTLogEvent -Filter "LogFile='Security'" | select -First 1

The values listed in the output of the command are the ones you can set in `win32_event_log.yaml`
to capture the same kind of events.

**Note**: the information given by the `Get-EventLog` PowerShell command or the Windows Event Viewer
GUI may slightly differ from `Get-WmiObject`, so we recommend you to double-check your filters' values
with `Get-WmiObject` if the integration does not capture the events you set up.