- URL:
- https://<root>/logs/settings/edit
- Methods:
POST- Required Capability:
- Access allowed with the "Security and Infrastructure" privilege
- Version Introduced:
- 10.1
Description
The edit operation updates the logs settings for the entire server site.
Request parameters
| Parameter | Details |
|---|---|
| The highest level of detail at which logs will be recording. The default is Values: |
| File path to the root of the log directories. The default path for Windows is Example |
| Represents the number of days that server should save a log file. The default value is 90. Example |
| The maximum number of error report files per machine. The default value is 10. Example |
| The response format: The default value is Values: |
Example usage
The following is a sample POST request for the edit operation:
POST /webadaptor/admin/logs/settings/edit HTTP/1.1
Host: machine.domain.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []
logLevel=INFO&logDir=/data/ags/arcgis/server/usr/logs&maxLogFileAge=90&maxErrorReportsCount=10&f=pjsonJSON Request example
{
"settings": {
"logDir": "/data/ags/arcgis/server/usr/logs/",
"logLevel": "INFO",
"maxLogFileAge": 90,
"maxErrorReportsCount": 10
}
}JSON Response example
{
"status": "success",
"settings": {
"logDir": "/data/ags/arcgis/server/usr/logs/",
"logLevel": "INFO",
"maxLogFileAge": 90,
"maxErrorReportsCount": 1
}
}