---
title: "Logs"
url: https://docs.corefinity.com/guides/sites/logs-and-monitoring/logs
type: guide
last_updated: 2026-11-13
feature: logs
related:
  - https://docs.corefinity.com/api/reference/logs/get-cluster-log-context.md
  - https://docs.corefinity.com/api/reference/logs/start-cluster-logs-export.md
  - https://docs.corefinity.com/api/reference/logs/get-cluster-log-facets.md
  - https://docs.corefinity.com/api/reference/logs/list-cluster-log-fields.md
  - https://docs.corefinity.com/api/reference/logs/list-cluster-log-field-values.md
  - https://docs.corefinity.com/api/reference/logs/get-cluster-log-histogram.md
  - https://docs.corefinity.com/mcp/tools/corestack_logs_streams_list.md
  - https://docs.corefinity.com/mcp/tools/corestack_logs_query.md
  - https://docs.corefinity.com/mcp/tools/corestack_logs_fields_list.md
  - https://docs.corefinity.com/mcp/tools/corestack_logs_field_values_list.md
  - https://docs.corefinity.com/mcp/tools/corestack_logs_context_get.md
  - https://docs.corefinity.com/mcp/tools/corestack_logs_facets_get.md
---
# Logs

Read a site's logs, narrow them to what you need and open one line.

## Before you start

- You can open the site in **Managed Websites**. Anyone who can open a site can read its logs.

## Read a site's logs

1. **Open the site's logs**

   Go to **Managed Websites**, choose the site, then **Logs** under **Logs & monitoring**. The newest lines from the last hour are shown.

   _Screenshot: A site page with Logs ringed in the section menu. The page shows the sources, the time ranges, a search box, a chart of lines over time and the newest log lines._

2. **Narrow them down**

   Choose a source, such as **PHP**, and a time range, such as **24 h**. Enter text in **Search text…** or choose a **Level**, **Status** or **Method**, then choose **Run**.

   _Screenshot: The whole Logs section: sources from All to Queue, ranges from 15 m to 30 d, the search box with Level, Status and Method choices, the Run button, the chart and the newest lines from the web server, PHP, the application and scheduled tasks._

   _Screenshot: The PHP source ringed and 6 h chosen. The lines are PHP warnings and notices that name the theme or plugin file and line, one fatal error, and PHP-FPM's own warnings._

   _Screenshot: The search box ringed with wp-login.php typed in it. Every line listed is a request for that page, and the counts beside Level, Status and Method are of those lines only._

3. **Open a line**

   Choose a line to see every field. **Filter by this value** narrows the search to that value, and **Context** shows the 20 lines before and after.

   _Screenshot: The Log line panel open on the right, with the line's time, source and message, then its fields: status, method, path, the visitor's address, the request time, the bytes sent, the browser and the level, a Filter by this value link beside most of them, and Copy line and Context._

## Find what you need

| To                         | Do this                                                                                         |
| -------------------------- | ----------------------------------------------------------------------------------------------- |
| See errors only            | Choose **error** beside **Level**, then **Run**.                                                |
| See failed requests        | Choose **5xx** beside **Status**, then **Run**.                                                 |
| Leave lines out            | Change **Phrase** to **Exclude**, type the text, then **Run**.                                  |
| Look at one moment         | Choose a bar in the chart.                                                                      |
| See older lines            | Choose **Load older**, under the lines.                                                         |
| Watch lines arrive         | Choose **Live**. **Stop live** ends it.                                                         |
| Start again                | Choose **Reset**.                                                                               |
| Keep a search or its lines | See [Saved queries and downloads](/guides/sites/logs-and-monitoring/saved-queries-and-exports). |

_Screenshot: The error level chosen beside Level, with 6 h chosen. The chart shows one tall red bar, and the lines are a PHP fatal error, three upstream timed out errors from the web server with their 504 requests, and a scheduled task that ended with exit code 1._

_Screenshot: The chart ringed with 24 h chosen: a bar for each hour, low overnight and highest in the early afternoon, red where the hour had errors._

_Screenshot: The live view: Stop live ringed in place of Live, the line Live with the lines per minute, the Pause and Clear buttons and the Follow tick box, and new lines listed as they arrive, oldest at the top._

## Check log storage

1. **Open the site's Overview**

   The **Logs & errors** card shows how much log storage is used and how long lines are kept. **Open Logs ›** takes you to the logs.

   _Screenshot: The Logs & errors card on a site's Overview: the errors in the last 24 hours as a small bar chart with the most frequent error under it, then the share of log storage used, how long lines are kept, and the link Open Logs._

The same figures are above the chart in **Logs**.

## Automate this

**API:** [Search a site's logs](https://docs.corefinity.com/api/reference/logs/query-site-logs.md), scope `read`

```bash
curl -X POST https://manage.corefinity.com/api/corestack/sites/1042/logs/query \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "limit": 200,
    "query": "status:>=500",
    "range": "1h",
    "source": "web-access"
  }'
```

**MCP:** [`corestack_logs_query`](https://docs.corefinity.com/mcp/tools/corestack_logs_query.md), scope `read`

```json
{
  "name": "corestack_logs_query",
  "arguments": {
    "site_id": 4211
  }
}
```

**Control Panel:** Managed Websites › your site › Logs & monitoring › Logs ([https://manage.corefinity.com/go/logs](https://manage.corefinity.com/go/logs))

## Related

- [Scheduled tasks](/guides/sites/site-settings/scheduled-tasks): Run a command on a schedule.
- [Change PHP version](/guides/sites/software-and-services/php-version): Switch a site to another PHP version.
- [Saved queries and downloads](/guides/sites/logs-and-monitoring/saved-queries-and-exports): Save a search and download its lines.
