Skip to main content
A keyword monitor makes the same HTTP request as an HTTP monitor and then checks the response body for text. Use it to confirm a page shows the right content, to catch error messages that are served with a 200 status, or to detect defacement.

When to use it

  • Confirm “Welcome” or “Sign in” appears on your homepage
  • Check that an API response contains "status":"ok"
  • Alert when an error message such as Database connection failed appears
  • Detect unwanted text such as hacked by or Out of stock

Create a keyword monitor

1

Set the basics

Enter the Website URL, Check Interval and Timeout exactly as for an HTTP monitor. See HTTP settings.
2

Add keywords

In Keyword Configuration, type the text, choose Contains or Excludes, and click Add. Click the contains / excludes tag on a keyword to switch it.
3

Choose matching rules

With more than one keyword, pick Match all or Match any. Use the Case sensitive switch if letter case matters.

Settings

The request itself (method, expected status, headers, request body, redirects, timeout) is configured under HTTP Configuration and works as on HTTP monitors, including the default that only status 200 passes unless you change Expected Status. Use a method that returns a body: HEAD has nothing to search.

Example

  • Website URL: https://www.yourcompany.com
  • Keywords: Contains Welcome to YourCompany, Excludes Database connection failed
  • Match all, Case sensitive off

How matching works

  1. The HTTP request is checked first (status code, timeout, TLS).
  2. The keywords are checked against the response body.
Matching is plain text matching. Regular expressions are not supported: add a separate keyword for each phrase.
Only the response body is searched, not the response headers.

Case sensitivity

Examples

SSL, domain expiry and slow responses

Keyword monitors support the same options under SSL, domain & performance alerts as HTTP monitors:

Best practices

  • Choose text that is stable and specific. Database connection timeout beats Error.
  • Monitor a lightweight endpoint. The whole response body is downloaded and searched.
  • Test your keywords against the real page source before relying on them.
  • Remember that UptimeIO sees the HTML your server returns, not content rendered later by JavaScript.

Troubleshooting

Check spelling and the Case sensitive switch. View the page source (not the rendered page): content added by JavaScript is not in the response. If the content depends on cookies or the user agent, the monitor may receive a different page.
The phrase may also appear in navigation, scripts or comments. Use a more specific phrase.
Add at least one keyword (up to 20, each up to 500 characters), and use a method other than HEAD.
Only 200 passes unless you add other codes to Expected Status under HTTP Configuration.

Next steps

HTTP Monitoring

All request options

Notifications

Configure alerts for keyword monitors