ChalmersGU-data-structure-courses / lab-system

Lab system and other scripts for grading and course administration (Canvas and GitLab integration). Currently used by the CSE department at Chalmers and GU for several courses, including data structures and algorithms.
0 stars 0 forks source link

Logwatch for monitoring event loop #25

Open sattlerc opened 1 month ago

sattlerc commented 1 month ago

In addition to the failure notification mechanism proposed in #24, it would be nice to have a standard log watching tool be able to parse our event loop service unit log and regularly send relevant entries like warnings and errors to the local user.

I am only familiar with logwatch. This document seems to describe how to make it parse a new service (section 6).

sattlerc commented 1 month ago

From #24:

[ ] Write a script that extracts the trailing error message(s) in the service unit log.

This script could be made general enough so that it can serve as the "Service Filter Executable" described in Section 6C of the logwatch customization document linked above.

sattlerc commented 1 month ago

@Niklas-Deworetzki suggests Prometheus as an alternative to logwatch.