This function returns entries from a domain's error log.
domain required | string <domain> The domain for which to return error log entries. Example: domain=example.com |
log | string The Apache log file to query. This parameter defaults to error.
Example: log=suexec |
maxlines | integer [ 1 .. 5000 ] Default: 300 The number of lines to retrieve from the error log. Example: maxlines=250 |
uapi --output=jsonpretty \ --user=username \ Stats \ get_site_errors \ domain='example.com'
{- "apiversion": 3,
- "func": "get_site_errors",
- "module": "Stats",
- "result": {
- "data": [
- {
- "date": 1234576704,
- "entry": "[Fri Feb 13 19:58:24.420593 2009] [core:error] [pid 29228:tid 47876185720577] (13)Permission denied: [client 10.0.0.2:62908] AH00132: file permissions deny server access: /home/user/public_html/index.html"
}
], - "errors": null,
- "messages": null,
- "metadata": {
- "transformed": 1
}, - "status": 1,
- "warnings": null
}
}