Title Extract Logs from REST
Extracts logs from ArcGIS Server.
By default, all logs are extracted. This can be a time intensive process, so consider filtering by time and/or service name.
When you have access to the directory with the ArcGIS Server logs, it is typically faster to use ExtractFileLogs.
ExtractRESTLogs (site, folder, {from_date}, {to_date}, {log_level}, {log_codes}, {process_ids}, {request_ids}, {components}, {services}, {machines})
Parameter | Explanation | Data Type |
---|---|---|
site |
Dialog Reference
The ArcGIS Server site to query. There is no python reference for this parameter. |
GPString |
folder |
Dialog Reference
The location to save the output. There is no python reference for this parameter. |
DEFolder |
from_date (Optional) |
Dialog Reference
The oldest time to include in the result set. If not specified, then all logs will be returned. There is no python reference for this parameter. |
GPDate |
to_date (Optional) |
Dialog Reference
The most recent time to query. If not specified, then the current time will be used. There is no python reference for this parameter. |
GPDate |
log_level (Optional) |
Dialog Reference
Only records with a log level at or more severe than this level are returned. If not specified, then WARNING will be used. There is no python reference for this parameter. |
GPString |
log_codes (Optional) |
Dialog Reference
Specifies the log codes assigned to server logs. If not specified, then all codes will be queried. There is no python reference for this parameter. |
GPLong |
process_ids (Optional) |
Dialog Reference
Specifies the machine process IDs to query. If not specified, then all process IDs will be queried. There is no python reference for this parameter. |
GPLong |
request_ids (Optional) |
Dialog Reference
Specifies an ID assigned to a specific server request. If not specified, then all request IDs will be queried. There is no python reference for this parameter. |
GPString |
components (Optional) |
Dialog Reference
Specifies the server components delivering the log message. If not specified, then all components will be queried. There is no python reference for this parameter. |
GPString |
services (Optional) |
Dialog Reference
Specifies whether to query all, none, or a specific service in your site. If not specified, then all services will be queried. There is no python reference for this parameter. |
GPString |
machines (Optional) |
Dialog Reference
Specifies whether to query all or a specific machine in your server site. If not specified, then all machines will be queried. There is no python reference for this parameter. |
GPString |
There are no code samples for this tool.
There are no tags for this item.
There are no credits for this item.
There are no access and use limitations for this item.