CorefinityCorefinityDocs
Open the Control PanelControl Panel
Logs and monitoring · 2 of 6

Saved queries and downloads

Keep a log search to run again, and download the lines a search finds.

On this page

Before you start

  • You can open the site in Managed Websites. Anyone who can open a site can save a query and download its lines.
  • The logs are narrowed to what you want: see Logs.

Save a query

  1. Save the current search

    In Logs, choose Saved queries, then Save current…. Enter a Name of up to 60 characters and choose Save.

  2. Run it again

    Choose Saved queries, then Run beside the query.

The source, the time range and the filters go back to what you saved.

My queries are yours alone: each user keeps up to 50, and Delete removes one. Shared on this site lists queries Corefinity has shared with everyone who can open the site.

Download log lines

  1. Open the download

    Run the search you want, open the … menu and choose Download….

  2. Prepare the file

    Choose CSV or JSON (NDJSON), then Prepare download. The file is prepared even if you close the dialog.

  3. Collect the file

    When the file is ready, choose Download. If you closed the dialog, open the … menu and choose Download ready… first.

The file holds up to 50,000 lines and stops at 64 MiB: when a search matches more, the newest 50,000 are included. A prepared file can be collected for 24 hours.

Automate this

Saved queries and downloads

Saves a query, filters or neither with a source and a time range: for this site when site_id is sent, for every site otherwise.

POST/api/corestack/sites/{site}/logs/saved-queries
curl -X POST https://manage.corefinity.com/api/corestack/sites/1042/logs/saved-queries \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "filters": {
      "level": [
        "warning",
        "error"
      ]
    },
    "name": "PHP warnings",
    "range": "7d",
    "source": "php"
  }'
Was this helpful?
Open in ClaudeOpen in ChatGPT