3.23 SiteEventLog

Use this Knowledge Script to monitor the event log for events related to Web application usage on the SharePoint server.

This script raises events for the following error codes:

  • 642: User Account Maintenance.

  • 5187: My Web application Creation failure.

  • 5550: A Web application move operation has failed--leaving the Web application structure in an unusual state.

  • 5551: A Web application copy operation has failed--leaving the Web application structure in an unusual state.

  • 5552: A Web application deletion operation has failed--leaving the Web application structure in an unusual state.

  • 5553: Web application Synch failed.

  • 5555: Content Database Synchronization failed.

  • 5707: Profile Import failed.

  • 5708: Membership Import failed.

3.23.1 Resource Objects

SharePoint Server

3.23.2 Default Schedule

The default interval for this script is every 10 minutes.

3.23.3 Setting Parameter Values

Set the following parameters as needed:

Description

How to Set It

General Settings

Job failure event notification

Event severity when job fails

Set the event severity level, from 1 to 40, to indicate the importance of an event in which the SiteEventLog job fails. The default is 5.

Additional Settings

Event Details

Event detail format

Specify the format of the event details, either as an HTML table or as plain text. The default is HTML Table.

Monitor Site Event Log

Event Notification

Raise event if the Web application raises an error?

Select Yes to raise an event if the Web application raises an error event in the event log. The default is Yes.

Event severity when an event is raised

Set the event severity level, from 1 to 40, to indicate the importance of an event raised as a result of an error event in the event log. The default is 20.

Data Collection

Collect data for site event log?

Select Yes to collect data for charts and reports. The default is unselected.

Events in past N hours

Set this parameter to control event checking for the first interval (after which checking is incremental):

  • -1 lists all the existing entries

  • N lists events for the past n hours, such as 8 for the past 8 hours, or 50 for the past 50 hours

  • 0 lists only entries from this moment on, without listing any previous entries

The default is 0.

Maximum number of entries per event report

Specify the maximum number of entries, from 1 to 100, that you want to be recorded in each event's detail message.

If this script finds more entries from the log than it can put into one event message, it will return multiple events to report all the outstanding entries in the log. The default is 30 entries.

If this script encounters one or more very large events in the Windows Event log, this script may error out and generate the following event message: Out of string space. If this occurs, specify a smaller value for this parameter.