When I click on “View Monit logfile?” in the HTTP interface, there is a lengthy delay, the a window with an empty frame.
I see no error message in the local monit.log (defined as
set log /var/log/monit/monit.log) at that time.
After some delay I see the message “Not found” / “There is no service named “_viewlog””.
Then a `HttpRequest: error -- …` repeating the message above is logged in
The probable cause is that (due to lacking a `logrotate` configuration)
monit.log has 244 MB, while the
Limit for HTTP content buffer is 1MB.
- Can’t there be a better error message like “log file content exceeds output buffer size”?
- Can’t there be a more clever algorithm like: Show just the head of the log file OR show just the tail of the log file OR show a combination like “head of log file”
…“tail of log file”