Actions
Feature #20153
closedCheck: Issue warning if there are errors in logs
Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Description
Description mentioned by Lukas on Github:
We could grep all known logs for (ERROR|error|fatal) or similar and in case there are some we could put the check into WARNING state. I would not do ERROR state because this will often show false alarm.
Further queries by Swapnil Abnave:
- Which log files to check?(production.log is one of it)
- Should we count all the errors? Or just check for recent error only?
Comment by Lukas:
I'd check /var/log/foreman/production.log and /var/log/foreman-proxy/proxy.log, skip them if not present (on Capsule only proxy.log will be there).
Each one has different format tho.
Both files are rotated daily so checking whole file is fine.
Actions