Many problems are written down before anyone notices them. Nginx logs “upstream timed out” for an hour before the site starts answering 504. The kernel logs “Out of memory” each time it kills a process that then restarts. The application logs the same stack trace on every failed payment, while the checkout page still loads fine.
Log monitoring turns those lines into alerts. It is part of server monitoring: the same small agent that reports CPU, memory and disk follows the log files you choose and counts the lines that match.
How log monitoring works
On a server monitor’s page, add a rule with:
- A name, such as “Nginx errors”, which the alert uses.
- The file, as a full path such as /var/log/nginx/error.log or C:\logs\app.log.
- What to look for: text a line must contain, in upper or lower case, or a regular expression.
- When to alert: how many matching lines, from 1 to 1,000, within 1, 5, 15 or 60 minutes.
The agent follows each file from its end, so old lines don’t count, and keeps following it when the log is rotated. With every report, once a minute, it sends how many new lines matched each rule. When a rule reaches its count within the window, you get one alert for that window, with up to three of the latest lines, and the server’s page shows how often each rule matched.
What leaves the server
Only counts, and up to three sample lines per rule of at most 300 characters each, with email addresses, passwords, tokens, keys and similar secrets masked before they are sent. Whole logs never leave the server, and Uptimecheck keeps only the matches. It is not a log archive or a search tool: keep your log platform for that, and use log monitoring to be told when to look.
Only the folders you allow
The agent can only read files in the folders allowed when it was installed: /var/log on Linux and /var/log and /Library/Logs on macOS by default. On Windows no folder is allowed until you name one. Change the list with --allow-logs when installing, or turn log watching off with --allow-logs none. Nothing set in Uptimecheck can widen it, and only owners and admins of the workspace can change which files a server follows.
Rules to start with
- Nginx: “upstream timed out” in /var/log/nginx/error.log, 5 lines within 5 minutes.
- Out of memory: “Out of memory” in /var/log/syslog or /var/log/kern.log, 1 line within 1 minute.
- Your application: the regular expression
level=(error|fatal)in its log file, 20 lines within 15 minutes. - Mail: “authentication failed” in the mail log, 50 lines within 15 minutes, to spot password guessing.
Requirements
Log monitoring needs agent 1.2.0 or newer, on Linux, macOS or Windows. Agents installed with automatic updates get new versions by themselves; others update with uptimecheck-agent update. Regular expressions use the RE2 syntax, which has no lookarounds or backreferences, so a pattern can never stall the agent.
Log monitoring is included with every server monitor: 5 servers on Start, 25 on Professional and 150 on Business. The Free plan has no server monitors. Alerts go to email, Slack, Microsoft Teams, Discord, Google Chat, Mattermost, Telegram, PagerDuty, ntfy, Pushover, webhooks and push notifications.
Plans start at €9 per month billed yearly or €12 billed monthly, excl. VAT. Compare plans on the pricing page, or start a 14-day free trial without a card.