|
Navigation: Event Log Consolidation > Conserving disk space and optimizing performance |
|
|
Consolidating event log and system health data into a central database is an extremely useful feature, but the wealth of data being collected can cause disk space and performance problems in small and large networks alike. This chapter will explain how to reduce the amount of data being logged by:
The chapter will also give recommendations on database performance optimization.
Event Log Data It is very easy to fill up any database when consolidating all event log entries from all monitoring machines to a central database. With heavy auditing in place, it is very easy to create millions for records every day on a small network and thus bring /any database server down to its knees. As such, if you find that the EventSentry database is growing out of control, then it is important that you first identify which non-essential event log records are being consolidated, so that they can be excluded later.
To find out which events are using up most of the space, you can use the Group By feature of the event log search in the web reports. The Group By feature lets you find the topmost events by a variety of criteria, for example by event id or event category.
Identifying the culprit For example, to find which event categories appear most often in the EventSentry database, navigate to the EventSentry web reports and open the "Event Search" page (under EVENT LOG). Then, click Category in the Group By field, select the Show Chart checkbox and click search. You might also want to further restrict the search by only showing records from the last 24 hours for example.
The left example below shows that 67% (move over the piechart with the mouse to see the percentage) of all events written in the last 24 hours are from the Object Access category, 19% are from the Logon/Logoff category, and 11% are from the Detailed Tracking category. Put together, these three categories account for 97% of all events being logged to the database, out of a total of about 35 event categories.
If you want to know which event IDs from the Object Access category are being logged, then select "Object Access" from the category pull-down menu, and click ID in the Group By list box and repeat the search. The right example below shows the results of this query.
However, you can also group the output by two fields at a time, for example you can select both the category and ID field from the Group By list box. The output below shows the results of this query (only the top 10 rows are shown in the screenshot):
The list immediately shows which event IDs are most prevalent, and with which event category they are associated with.
Determining which events to exclude Now that know which events use up 97% of the disk space, you can run detailed event searches to see if the events which are being logged need to be consolidated. For the first line, simply click the Reset Form button and then select the event ID 562 and the event category Object Access. When running the search, you are encouraged to limit the search results (e.g. 500 records) and also specify a time range, such as the last 24 hours for example.
Repeat this process for all events that occupy the majority of database space to determine which events can be excluded. Once you have identified events which can be excluded, setup one or more exclude filters for these events. Please consult the help file or Excluding Events in this document for more details on excluding events.
Performance Monitoring
Process Tracking Process Tracking data is similar to event log data, though it too uses less space in the database than event log data since no event messages are being recorded. Process Tracking can give you an enormous amount of information about the state of processes on a given server or workstation at any given time, but it can also fill up the EventSentry database quickly.
For example, many servers execute processes on a regular basis that do not need to be recorded, for example a monitoring server might execute the ping.exe process every 10 seconds, resulting in 8640 rows of data every day. We can reduce the amount of data logged by excluding unneeded information from the database.
Database Optimization, Hardware Planning If you have followed the steps above and ensured that you are only logging the data that you need to the EventSentry database, then you can tackle the next step, making sure that your database is running on the proper hardware and performing well.
It is obvious that no software can do wonders when the underlying hardware is insufficient. Please consider the following suggestions if you plan on making a hardware purchase for a new database server, or are considering a hardware upgrade for your database server. Please note that these suggestions assume that your database server will only be used for the EventSentry database.
Disk Subsystem The disk subsystem is one of the most crucial components of a database server, if you have slow disks then your database queries will almost always be slow, even when you have ample CPU power and memory available. The ideal disk subsystem should look like this:
The more disks you can provide for the database partition, and the faster the disks, the better the query response time will be.
Memory The amount of memory installed is also crucial, and your database server should have at least 2Gb of memory. If you are running Microsoft SQL Server, then 4Gb or more are recommended.
CPU The number of CPUs is not as crucial as the previous two components (one CPU should suffice in most cases), however you should still ensure that a recent CPU model (e.g. Pentium IV Xeon 2.8Ghz+) is installed.
In addition to hardware optimization, you also need to ensure that your database is optimized. Please see the Database Tips in EventSentry help manual for more information. |