Cluster logs
Read the logs of every site in a CoreCluster in one place, and check how much log storage they use.
Before you start
- Your organisation has a CoreCluster. Anyone in the organisation can read its sites' logs.
Read a cluster's logs
Open Logs
Go to Managed Clusters, choose the cluster, then Logs. Each line names the site it came from.
Choose the sites
Choose Sites, tick the sites to read, then choose Apply. All sites ticks every site, and Find a site narrows a long list.
Choose the environments
Choose Production for the production environments only, or All environments.
The lines of the chosen sites are listed together. Sources, time ranges, search, the live view and downloads work as on one site: see Logs.
Check log storage
Open the cluster's Overview
Go to Managed Clusters and choose the cluster. The Logs card shows how much log storage the cluster's sites use together and how long lines are kept.
To add log storage, choose Add capacity… in the cluster's Package section: see Package, capacity and server type.
Automate this
Answers the matching lines of every site of the CoreCluster that you can see, newest first, each with its site; a query with a pipe answers site null and says so in warnings, and an aggregating pipe, such as | stats count(), answers kind table.
curl -X POST https://manage.corefinity.com/api/corestack/clusters/1017/logs/query \
-H "Authorization: Bearer $COREFINITY_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"environment": "all",
"range": "1h"
}'Your assistant calls corecluster_logs_query.
{
"name": "corecluster_logs_query",
"arguments": {
"cluster_id": 812,
"sites": [4211, 4230],
"source": "web-error",
"range": "1h"
}
}