Linux log monitoring default checks and policies
Summarize
Summary of Linux Log Monitoring Default Checks and Policies
The Agent Client Collector offers policies for monitoring Linux log files, catering to both regular and root user logs. These policies enable users to set up checks that can track log entries based on specified patterns, ensuring efficient monitoring of critical events within applications.
Show less
Key Features
- util.check-logs: Monitors log files owned by regular users, allowing various configurations such as case sensitivity, exclusion patterns, log file paths, and specific log formats.
- util.check-logs-sudo: Similar functionality for log files owned by root users, with additional commands to run with sudo permissions.
- Flexible Pattern Matching: Users can define multiple patterns, set warning and critical levels, and configure log file encodings for precise monitoring.
- Event Management: Options to skip events for nonexistent log files and control the output of matched lines enhance usability and performance.
Key Outcomes
By implementing these checks, ServiceNow customers can effectively monitor log files for critical events, receive alerts based on defined patterns, and quickly respond to potential issues. This proactive approach ensures smoother operations and improved system reliability.
Agent Client Collector provides the following policy for Linux log monitoring.
| Type | Check | Description | Usage and Usage Example | Output |
|---|---|---|---|---|
| Event | util.check-logs | Enables monitoring log files owned by a regular user. | Usage:
Usage example: |
CheckLog CRITICAL: 0 warnings, 8 criticals for pattern SEVERE|Exception in log file /var/log/servicenow/agent-client-collector/acc.log |
| Event | util.check-logs-sudo | Enables monitoring log files owned by a root user. | Usage:
Usage example: |
CheckLog CRITICAL: 0 warnings, 8 criticals for pattern SEVERE|Exception in log file /var/log/servicenow/agent-client-collector/acc.log |