Home > Monitoring, syslog, Windows > Monitoring Windows 2008 R2 Event Logs with Snare and Syslog

Monitoring Windows 2008 R2 Event Logs with Snare and Syslog

So now that you’ve deployed some brand spankin’ new Windows 2008 R2 servers you probably want to start gathering some information on their condition and monitor their security.  Syslog is a very good way to gather the logs from a large number of servers and direct them to a central site for analysis.  In this post we’ll make use of the Snare EventLog Agent to collect events from the Windows Event Log service and forward them to a centralized syslog server.  Since the events that are logged to the Event Log do not generally conform to the syslog standard some manipulation of the messages may be necessary on your syslog server.

In this example I will be installing the Snare EventLog Agent on an Active Directory domain controller so that I can monitor logon/logoff failure events that occur with my domain user accounts.  My central syslog server will be running on a CentOS Linux host using the syslog daemon rsyslog.  There are also many syslog servers available for Windows if you choose to go that route.  Kiwi is one with a nice interface but the full featured version is payware. Your choice of a syslog server to collect your messages should be immaterial to this discussion as the configuration steps should be the same with the Snare Agent.

First let’s start by installing the Snare Agent software.  You’ll want to download the version for Windows Vista and above here.  Logon as administrator on your 2008 R2 server and run the install file.

Proceed with the installation and accept the defaults until you get to the “Snare Auditing” screen.

The Snare Auditing screen allows you to give Snare the access necessary to edit the auditing settings on your server to conform to the objectives that you configure with the agent.  I’m generally paranoid about anything too automatic (especially on a domain controller) so I’ll select No.  This means that I’ll need to manually specify the auditing settings needed so that events are created in the Event Log.  Click Next.

If you want to configure higher security you can select one of the “Yes – with password” options for the Snare web configuration interface.  By default the user/password combo is snare/snare.  I’ll keep the default, no password is okay for me because the only access to the web interface is permitted on the local machine.  Click Next.

Run through the rest of the install keeping the default settings.

Go to Start > All Programs > InterSect Alliance > Snare for Windows.  Enter your password if you chose that option.

On the left click Network Configuration.

For the Destination Snare Server enter the hostname or IP address of your syslog server.  For Destination Port enter 514 which is the port the syslog server will listen for messages.  Choose a SYSLOG Facility and Priority from the drop down lists, remember that your syslog server will need to be configured appropriately for the messages to be received.  I will choose the SYSLOG Priority Dynamic, which as I understand it should attempt to translate the event severity in the Event Log to a comparable syslog severity/priority.  I’ve noticed some flakeyness with this setting so you may need to specify a single static Priority.

Optionally you can enter a name to override the DNS Name, I chose to override because the DNS Name includes the fully qualified domain name and I’d like to use the shorter hostname.  Finally I will check Enable SYSLOG Header, this will fix a few (but not all) of the message formatting issues I mentioned earlier.

Click Change Configuration.  Then on the left click Apply the Latest Audit Configuration.  Get used to doing this second step, since changes that you make to in the web interface will not be effected until you select this option.

One thing to note is that I experienced problems with the Snare Agent whenever I clicked the Domain Users or Domain Group Members links on the left side.  The Snare process would suddenly terminate and I had to restart it manually.  This may be simply an effect that I installed Snare on a domain controller, since clicking on the Local entries actually returns results for Domain user/group accounts.  Anyway, as long as you avoid clicking these links, the Snare Agent appears to function normally.

On the left click Objectives Configuration.

By default Snare is configured with several rules (objectives) by which it will identify events in the Event Log and forward them as messages to the syslog server.  I find that a great volume of log messages are forwarded and I prefer to keep things a little bit simpler and less “noisy”.  So I will delete the rules that Snare has by default and will setup my own.  Unfortunately I have not found a way to simply disable the objectives, I have found that deleting them is the best way to disable them.  You may prefer to make a note of what rules are set up in the event you would later like to include the additional syslog messages.

To delete each objective, click Delete under the Action Required heading in the left column of the yellow table.

Now click Objectives Configuration on the left side and repeat for each objective until they are all deleted.

In the center of the screen click the Add button.

I will keep most of the defaults and leave Logon or Logoff as the event to identify.  I’ll change the event type to be captured to Failure Audit to track things such as logon failures with domain accounts to computers and shared folders.  If you keep the Success Audit expect the syslog message volume to be larger.  Of course the configuration I’m using is pretty basic, but it’s just a starting point.  For Select Alert Level I’ll choose Information, this is the event level given to audit events and they won’t be forwarded if you select a higher level.  Click the Change Configuration button at the bottom, then click Apply the Latest Audit Configuration on the left.

Advertisements

Pages: 1 2

  1. June 17, 2010 at 3:01 am

    Please see above site for some more interesting articles

  2. June 17, 2010 at 9:10 am

    windows is using friendly GUI..

  3. December 1, 2011 at 7:15 am

    Great howto Aaron; glad to see Snare’s getting a workout!

    Leigh (Snare dev)

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: