Skip to content

Conversation

Knowledge-JO
Copy link
Collaborator

Description

  • Added log monitoring capabilities to the Telex server monitor with the following features:

    • System log analysis: Retrieves recent error entries from system logs (Windows Event Logs via wevtutil or Linux journalctl for priority 3 errors from the last hour), providing a snapshot of OS-level issues.

    • Error log monitoring: Continuously checks system logs for errors at regular intervals, tracking the latest error events with timestamps. Logs are sent to telex at an interval of 5mins.

    • Custom log file monitoring: Supports monitoring of user-specified log files (e.g., .telexMonitor/error.log), reading the last 10 lines and detecting changes since the last check.

    • Log pattern matching: Filters log entries using customizable regex patterns (defaults to "error" and "fail"), with dynamic updates via setPatterns(), to highlight critical messages.

    • Output formatting: Presents log metrics in a structured format with timestamps and truncated messages

image

@Knowledge-JO Knowledge-JO merged commit 75b3172 into dev Apr 4, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant