Log monitoring: Catch the error before it becomes an outage.

Tell the Uptimecheck agent which log files to follow and what to look for, and get an alert when matching lines pile up: “upstream timed out” from Nginx, “Out of memory” in the system log, a stack trace from your app. Whole logs never leave the server.

14-day free trial · Then free on 20 monitors · No credit card

4.9/5 from 1,247+ reviews Trusted by 65,000+ companies
01

Text or regular expressions

Match a piece of text, in upper or lower case, or a regular expression, in up to 10 log files per server.

02

Alerts on the count, not every line

Alert when 1 to 1,000 lines match within 1, 5, 15 or 60 minutes: one alert per window, with up to three of the lines.

03

Your logs stay on your server

The agent sends counts and three masked lines, and reads only folders allowed on the server itself.

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.

Log monitoring questions

Does Uptimecheck store my logs?

No. The agent counts matching lines on the server and sends the counts with up to three sample lines per rule, masked first. Whole logs never leave the server.

Which log files can the agent read?

Only files in the folders allowed when it was installed: /var/log on Linux, /var/log and /Library/Logs on macOS, and on Windows only the folders you name with --allow-logs.

Can I use regular expressions?

Yes, in the RE2 syntax. Without one, a rule matches lines that contain your text, in upper or lower case.

How many log rules can a server have?

Up to 10, each with its own file, pattern, count and window.

Which agent version do I need?

1.2.0 or newer. Agents with automatic updates turned on install it by themselves, and uptimecheck-agent update installs it by hand.

Who can change which logs a server follows?

Owners and admins of the workspace, and only within the folders allowed on the server itself.

Works well with

Server monitoring

CPU, memory, disk, network, reboots and errors in log files on Linux, macOS and Windows.

Learn more

Cron job monitoring

Crontab schedules, start and finish pings, exit codes and output for every job.

Learn more

Incident management

Confirmed outages with evidence, a timeline, acknowledgements and incident reviews.

Learn more

Hear it from us, not your customers.

Click around the live demo without an account, or start your trial and add your first monitor.

14-day free trial · Then free on 20 monitors · No credit card