Topics

| pdf version

Splunk > The IT Search Company

  • Search and navigate IT data from applications, servers and network devices in real-time.
  • Download Splunk

Localized Splunk documentation

Looking for Splunk documentation in other languages?

Monitor Windows Event Log data

This documentation applies to the following versions of Splunk: 4.0.7 , 4.0.8 , 4.0.9 , 4.0.10

Monitor Windows Event Log data

This topic discusses ways to configure Splunk to monitor Windows Event logs. You can configure this via Splunk Web or via configuration files.

Note: To add another log channel to monitor on localhost, edit the existing input. To monitor a remote machine, add a new input.

Configure Windows Event Log monitoring with Splunk Web

1. Click Manager in the upper right-hand corner of Splunk Web.

2. Under System configurations, click Data Inputs.

3. Click Event Log collections.

4. Click New to add an input.

5. Enter a unique name for this collection.

6. Specify a hostname or IP address for the host from which to pull logs, and click Find logs... to get a list of logs from which to choose.

Caution: Windows Vista offers many channels; depending on the CPU available to Splunk, selecting all or a large number of them can result in high load.

7. Optionally, provide a comma-separated list of additional servers from which to pull data.

8. Click Save.

The input is added and enabled.

Configure Windows Event log monitoring using configuration files

1. Copy inputs.conf from $SPLUNK_HOME\etc\system\default to etc\system\local .

2. Un-mark it "Read Only".

3. Open and enable the Windows Event Log inputs using the specifics below.

4. Restart Splunk.

Windows Event Log monitoring inputs.conf specifics

Windows event logs are from binary format *.evt files and cannot be monitored like a flat file. The settings for which event logs to index are in the following stanza in inputs.conf:

# Windows platform specific input processor.
[WinEventLog:Application]
disabled = 0 
[WinEventLog:Security]
disabled = 0 
[WinEventLog:System]
disabled = 0 

You can configure Splunk to read non-default Windows event logs as well, but you must import them to the Windows Event Viewer first, and then add them to your local copy of inputs.conf, (usually in $SPLUNK_HOME\etc\system\local\inputs.conf) as follows:

[WinEventLog:DNS Server]
disabled = 0
[WinEventLog:Directory Service]
disabled = 0
[WinEventLog:File Replication Service]
disabled = 0

To disable indexing for an event log, add disabled = 1 below its listing in the stanza in $SPLUNK_HOME\etc\system\local\inputs.conf.

GUID/SID resolution

evt_resolve_ad_obj = <integer> 1|0 This setting enables or disables resolving Active Directory objects like GUID/SID objects for a specific Windows event log channel. By default this option it turned on for Security event logs. Optionally you can specify the Domain Controller name and/or DNS name of the domain to bind to (using the evt_dc_name or evt_dns_name settings) which then Splunk will use to resolve the AD objects. Setting this to 0 disables GUID/SID resolution.

evt_dc_name = <string> Optional, this parameter can be left empty. This setting lets you specify a particular Domain Controller Name to bind to. This name can be the name of the domain controller or the fully-qualified DNS name of the domain controller. Either name type can, optionally, be preceded by two backslash characters. All of the following examples represent correctly formatted domain controller names:

  • "FTW-DC-01"
  • "\\FTW-DC-01"
  • "FTW-DC-01.splunk.com"
  • "\\FTW-DC-01.splunk.com"

evt_dns_name = <string> Optional, this parameter can be left empty. Fully-qualified DNS name of the domain to bind to

Specify whether to index starting at earliest or most recent event

Use these settings to specify which in chronological order you want to index the events, from oldest->newest or newest->oldest, and whether you want to index all pre-existing events, or just new events.

start_from = oldest
current_only = 1
  • start_from: By default, Splunk starts with the oldest data and indexes forward. We don't recommend changing this setting, as it results in a highly inefficient indexing process.
  • current_only: This option allows you to only index new events, from the moment Splunk was started. It acts like a tail to a file.

Index exported Windows Event Log (.evt or .evtx) files

To index exported Windows Event Log files, use the instructions for monitoring files and directories.

Caveats

  • Do not use the Upload a local file feature; this feature does not currently work with this filetype.
  • The file must be accessible as local to your Splunk installation.
  • Do not attempt to monitor a .evt or .evtx file that is currently being written to; Windows will not release the lock on the file; best practice is to point the monitor at the directory into which your files are being placed so that new files are indexed automatically.
  • Indexing .evt files that originated on a different machine may not always work, as the Windows API doesn't include consistent .dlls across the different OS versions. You will likely see the following message in your index when this occurs - Splunk could not get the description for this event. Either the component that raises this event is not installed on your local computer or the installation is corrupt. The workaround for this is to use a Splunk forwarder on the originating machine. Splunk cannot be modified to simply "work" in this situation. The problem originates from the lack of information provided by the Windows OS.
Revision: 207 Contact Privacy Policy Terms of Use Community content licensed under Creative Commons