Title Extract Logs from REST
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}, logs)
Parameter | Explanation | Data Type |
---|---|---|
site |
Dialog Reference
<p>The ArcGIS Server site to query.</p> |
GPString |
folder |
Dialog Reference
<p>The location to save the output.</p> |
DEFolder |
from_date (Optional) |
Dialog Reference
<p>The oldest time to include in the result set. If not specified, then all logs will be returned.</p> |
GPDate |
to_date (Optional) |
Dialog Reference
<p>The most recent time to query. If not specified, then the current time will be used.</p> |
GPDate |
log_level (Optional) |
Dialog Reference
<p>Only records with a log level at or more severe than this level are returned. If not specified, then WARNING will be used.</p> |
GPString |
log_codes (Optional) |
Dialog Reference
<p>Specifies the log codes assigned to server logs. If not specified, then all codes will be queried.</p> |
GPMultiValue |
process_ids (Optional) |
Dialog Reference
<p>Specifies the machine process IDs to query. If not specified, then all process IDs will be queried.</p> |
GPMultiValue |
request_ids (Optional) |
Dialog Reference
<p>Specifies an ID assigned to a specific server request. If not specified, then all request IDs will be queried.</p> |
GPMultiValue |
components (Optional) |
Dialog Reference
<p>Specifies the server components delivering the log message. If not specified, then all components will be queried.</p> |
GPMultiValue |
services (Optional) |
Dialog Reference
<p>Specifies whether to query all, none, or a specific service in your site. If not specified, then all services will be queried.</p> |
GPMultiValue |
machines (Optional) |
Dialog Reference
<p>Specifies whether to query all or a specific machine in your server site. If not specified, then all machines will be queried.</p> |
GPMultiValue |
DEWorkspace |
workspace