Configuring MongoDB for eventlog2mongodb

EventLog2MongoDB requires a MongoDB to connect to in order to send EventLogEvents to the MongoDB instance. An installation can be found here: http://www.mongodb.org/display/DOCS/Quickstart. If you're a Windows user head straight for the Quickstart Windows: http://www.mongodb.org/display/DOCS/Quickstart+Windows.

This service utilizes the C# MongoDB Driver:
https://github.com/mongodb/mongo-csharp-driver/downloads

App config Mongo Configuration

By default the app.config is setup as below:
  1. mongoDbConnectionString - "mongodb://localhost/?safe=true" - configured to localhost
  2. mongoDbDatabase - "test" - uses the test database instance
  3. mongoDbMachineEntitiesName - "machines" - a collection to store machine names where eventlog2mongodb is running
  4. mongoDbEventsEntitiesName - "events" - a collection to store all of the windows events.

<configuration>
<appSettings>
<add key="mongoDbConnectionString" value="mongodb://localhost/?safe=true"/>
<add key="mongoDbDatabase" value="test"/>
<add key="mongoDbMachineEntitiesName" value="machines"/>
<add key="mongoDbEventsEntitiesName" value="events"/>
<add key="eventLogName" value="Application"/>
<add key="eventLogType" value="1"/>
<add key="eventLogQuery" value="EventLogQuery.txt"/>
<add key="eventLogQueryCatchup" value="EventLogQueryCatchup.txt"/>
</appSettings>
</configuration>

The MongoDB Collections

Here's some views of the data using MongoVue www.mongovue.com

mongoVUE1.PNG

mongoVUE-Events.PNG

Last edited Apr 29, 2012 at 11:03 AM by welshstew, version 4

Comments

No comments yet.