Edit Log Settings

Description

The log settings are for the entire site. POST updates the settings.

Request Parameters

Parameter

Details

logLevel

Description: Can be one of [OFF, SEVERE, WARNING, INFO, FINE, VERBOSE, DEBUG].

Default: WARNING

logDir

Description: File path to the root of the log directories.

Default: Windows: C:\\arcgisserver\\logs Linux: [server root]/usr/logs/

maxLogFileAge

Description: Represents the number of days that server should save a log file.

Default: 90

maxErrorReportsCount

Description: The maximum number of error report files per machine.

Default: 10

f

Description: The response format: [html|json|pjson].

Default: html

Request Format

{"settings": {
  "logDir": "/data/ags/arcgis/server/usr/logs/",
  "logLevel": "INFO",
  "maxLogFileAge": 90,
  "maxErrorReportsCount": 10
}}

Response Format

{"status": "success",
  "settings": {
    "logDir": "/data/ags/arcgis/server/usr/logs/",
    "logLevel": "INFO",
    "maxLogFileAge": 90,
    "maxErrorReportsCount": 10
}}

3/3/2017