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, enabling customers to track logs owned by both regular and root users. This functionality is crucial for identifying critical issues and warnings in log files effectively.
Show less
Key Features
- Event util.check-logs: Monitors log files owned by regular users.
- Event util.check-logs-sudo: Monitors log files owned by root users.
- Flexible Matching Options: Supports case-insensitive matching, specific encoding, and exclusion patterns.
- Log File Patterns: Allows checks on patterns of files using regex, improving the scope of log monitoring.
- Return Options: Configurable to return matched lines, limit returned entries, and specify log entry formats.
Key Outcomes
By utilizing these monitoring checks, ServiceNow customers can:
- Receive notifications of critical issues and warnings in log files, enhancing system reliability.
- Customize log monitoring based on specific patterns and severity levels, ensuring relevant log entries are tracked.
- Streamline log file management with automated state file directories, simplifying the monitoring process.
Overall, these policies empower ServiceNow customers to maintain effective oversight of their Linux log files, ensuring timely responses to critical events.
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 |