v1

latestOpenAPI 3.0.2cPanel License2026-08-06657427.1 MB
LogManager
Logs

Return domain's PHP error logs

This function lists the website's PHP error log files with size and last-modified metadata. It does not return file contents.

get/LogManager/list_error_logs

Query parameters

domainstring required

A domain owned by the cPanel account.

Response

HTTP Request was successful.

apiversioninteger

The version of the API.

funcstring

The name of the method called.

modulestring

The name of the module called.

Example response

{
  "apiversion": 3,
  "func": "list_error_logs",
  "module": "LogManager",
  "result": {
    "data": [
      {
        "file_id": "php_fpm_error_log",
        "modified_today": 1,
        "mtime": 1778112083,
        "path": "/home/cpuser/logs/example_com.php.error.log",
        "size": 4096
      }
    ],
    "metadata": {
      "transformed": 1
    },
    "status": 1
  }
}