Get Site Logs
get_site_logsTail a site's application or Nginx logs to troubleshoot errors. Retrieve Laravel log, Nginx access, or Nginx error logs for a given server and site.
Instructions
Tail a site's logs: the Laravel/application log, or the Nginx access or error log. The first place to look when a site is throwing errors. Requires the server:manage-logs scope (whose only write power is clearing logs).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | Site id from list_sites. | |
| type | Yes | Which log to read. | |
| server | Yes | Server id the site is on. | |
| organization | No | Organisation slug. Optional when the server has a default configured. |