Read a site's logs, narrow them to what you need and open one line.
On this page
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
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.
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.
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.
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. |
Check log storage
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.
The same figures are above the chart in Logs.
Automate this
Answers the lines of the site that match, newest first; a query that ends in an aggregating pipe, such as | stats count(), answers kind table with table instead of lines.
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"
}'Your assistant calls corestack_logs_query.
{
"name": "corestack_logs_query",
"arguments": {
"site_id": 4211
}
}