Configure Logging for a CSM Server or Web Application
Use the Server Manager to configure event logging for CSM Servers or Web Applications. Event logging records significant events and errors, and is used for troubleshooting. When configuring event logging, designate:
- Where to log events: To the event log (so they can be viewed by the Windows Event Viewer), to a specified file (determine the location and size), or to a Splunk server (by using the tool to manage event data).
- Which classification of server events to log (debug, information, warning, error, or fatal).
Logging can be configured to go to an event log, set up file locations, or to a Splunk server. Splunk is a third-party tool that identifies data patterns, provides metrics, diagnoses problems, and provides intelligence for business operations. CSM integrates with Splunk so that CSM event log data can be indexed and made easily searchable. Download and install Splunk onto a server and configure it for logging events. Log Debug messages (Debug and above) to a file or to Splunk, and NOT to an event log. CSM logs numerous Debug messages, so a log would be slow and might require more resources. For more information on integrating Splunk and CSM, see Splunk Integration (Splunk Integration, http://docs.splunk.com/Documentation).
To configure logging for a CSM Server or Web Application:
- Open the Server Manager.
- From the Server drop-down, select a Server or Web application.
- Click the Logging button.
The Logging Options window for the selected Server opens.
- Select where to log CSM events (select one or more options):
- Log to event log: Select this check box to log CSM events so that they can be viewed by the Windows Event Viewer. Then, select which events to log:
- Log to file: Select this check box to write the logs to a specific file and location. Then, set your file limits.
- Log Level: Select an event classification as described above (ex: Debug and above, Info and above, etc.)
- File Name: Click the Ellipses button to select a location for the log file.
- File Size Limit: By default, the file size is set to 10 MB, but can be changed by entering a new value in the field.
- File Count Limit: Rolling event logs are used, so that when the maximum file size is reached for a log file, a new file is created. By default, the number of files is set to 20 (but can be changed), after which the oldest log file is overwritten by continued logging.
- Log to Splunk: Select this check box to write the logs to a Splunk server, and then configure Spunk logging.
- Click OK.
- Click OK to close the Logging options window.