Return specified domain access log

This function returns entries from a domain's error log.

SecurityBasicAuth
Request
query Parameters
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.

  • error - The /var/log/apache2/error_log file.
  • suexec - The /var/log/apache2/suexec_log file.
Enum: "error" "suexec"
Example: log=suexec
maxlines
integer [ 1 .. 5000 ]
Default: 300

The number of lines to retrieve from the error log.

Example: maxlines=250
Responses
200

HTTP Request was successful.

Response Schema: application/json
apiversion
integer

The version of the API.

func
string

The name of the method called.

module
string

The name of the module called.

object
get/Stats/get_site_errors
Request samples
uapi --output=jsonpretty \
  --user=username \
  Stats \
  get_site_errors \
  domain='example.com'
Response samples
application/json
{
  • "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
    }
}