Read a certain number of log lines from the end of the file log. If serverId is passed, then the request will be performed against that cluster member, otherwise it is performed locally.
Version: 1.3
Required Permissions: Read-Only
HTTP method: GET
Supported by Editions: Zend Server
Request Parameters:
Parameter |
Type |
Required |
Description |
logName |
String |
Yes |
One of the following values: codetracing, datacache, deployment, dserver, jobqueue, jqd, monitor, monitor_node, monitor_ui, pagecache, php, sc, scd, statistics, utils, zdd, zem, zsd, php |
serverId |
Integer |
No |
If passed, the log contents will be fetched from that cluster member, otherwise performed locally. |
linesToRead |
Integer |
No |
How many lines to read. defaults to a certain system-wide configurable setting. Limited by another such setting. |
filter |
String |
No |
Apply a certain case-insensitive string filter to the log lines. |
Expected Response Code: 200 OK.
Response Format: The response contains some metadata fields, and the log lines content
Possible Action Specific Error Codes:
HTTP Code |
Error Code |
Description |
400 |
invalidParameter |
Could be as of non-recognized logName, non-existent serverId etc. |
404 |
logFileNotReadable |
Log file was not found / missing read permissions |
500 |
internalServerError |
Operation against remote server failed. |
|
Request (headers removed for the purpose of clarity)
Response (not all headers are shown)
|
|
|
|
Related Links: Available API Methods |
|
|
© 1999-2013 Zend Technologies, Ltd. All rights reserved.