Skip to content

Settings (Logs)

Description

The settings resource returns the current log settings for an organization. At ArcGIS Enterprise 11.2 on Kubernetes, this resource returns the maximum number of days logs are retained in the system before they are deleted (maxLogAgeDays). At ArcGIS Enterprise 11.5 on Kubernetes, this resource also returns the maximum number of error (crash) reports that can be saved in your system (maxErrorReportsCount). If the number of generated error reports exceeds the maximum value, the oldest report is deleted to create space for the newly generated report.

Request parameters

ParameterDetails

f

The response format. The default format is html.

Values: html | json | pjson

Example usage

The following is a sample request URL used to access the settings resource:

Use dark colors for code blocksCopy
1
https://organization.example.com/<context>/admin/logs/settings?f=pjson

JSON Response syntax

Use dark colors for code blocksCopy
1
2
3
4
5
6
{
  "maxLogAgeDays": <Number of days for the log retention policy>,
  "logLevel": "<INFO | SEVERE | WARNING | FINE | VERBOSE | DEBUG>",
  "lastModified": <Milliseconds from epoch from when log settings were last updated>,
  "maxErrorReportsCount": <Maximum number of error reports that can be saved in your system>
}

JSON Response example

Use dark colors for code blocksCopy
1
2
3
4
5
6
{
  "maxLogAgeDays": 60,
  "logLevel": "INFO",
  "lastModified": 1597076095038,
  "maxErrorReportsCount": 10
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.