CorefinityCorefinityDocs
Open the Control PanelControl Panel
Logs · 11 of 20

corestack_logs_saved_query_create

Save a log query.

Scope writeNo secrets returned
On this page

When to use it

Save a log query — its source, LogsQL or filters, and range — for this site, or for every site with global, so the person finds it again on the Logs tab.

Ask for it

Prompt
Using the Corefinity MCP server, call corestack_logs_saved_query_create with site_id 4211, name Staging, source all, range 15m. (Save a log query.) Tell me what it returned.

Inputs

filtersobject

The filter builder's entries (level, text, fields), ANDed with the query.

globalboolean

true: offered on every site; false (the default): this site only. Defaults to false.

namestringRequired

Up to 60 characters.

querystring

LogsQL, sent as written (* when empty). Up to 4,096 characters.

rangestringRequired
15m1h6h24h7d30dcustom
site_idintegerRequired

At least 1.

sourcestringRequired

One log source (corestack_logs_streams_list says which this row has). Defaults to all.

allweb-accessweb-errorphpappcrondatabasecachesearchqueue

Example call

tools/call
{
  "name": "corestack_logs_saved_query_create",
  "arguments": {
    "site_id": 4211,
    "name": "Staging",
    "source": "all",
    "range": "15m"
  }
}

If it is refused

ReasonWhat to do
invalid_argumentsThe arguments do not match the tool's input schema, or the Control Panel refused a field. Fix the fields named in the answer and call again.
tenant_mismatchThe object does not exist or the token may not see it. Check the id.
scope_requiredThe token lacks a scope this call needs. Open the link in the answer to add it, then call again.
pin_refusedThe grant is limited to chosen clusters, sites or environments, and this call is outside them. Open the link in the answer to widen it.
rate_limitedToo many calls. Wait for the number of seconds the answer names.
temporarily_unavailableThe Control Panel could not answer just now. Nothing was started; try again shortly.
internal_errorSomething went wrong on our side. Quote the trace id to support.

The same task elsewhere

Was this helpful?
Open in ClaudeOpen in ChatGPT