Device log configuration

Change log rotation and retention settings.

Request

Security

Table 1. Roles capable of executing the Device Log Configuration API method
Any Super User System Admin Security Admin Operator
  superUser systemAdmin    

HTTP method

POST /manager/api/{apiResponseType}/1.0/deviceLogConfiguration.adm' HTTP/1.1 Host:{manager.dsnet} maximumAccessLogRetentionTime={maximumAccessLogRetentionTime}&accessLogRotationTime={accessLogRotationTime}

Curl method

curl -X POST -u {username}:{password} 'https://{manager.dsnet}/manager/api/{apiResponseType}/1.0/deviceLogConfiguration.adm' -d 'maximumAccessLogRetentionTime={maximumAccessLogRetentionTime}&accessLogRotationTime={accessLogRotationTime}'

Parameters

Table 2. Request Parameters for Device Log Configuration (deviceLogConfiguration) API method
Parameter Type Usage Default Description
maximumAccessLogRetentionTime Long Optional The maximum amount of time (in ms) that access logs will be persisted on devices. The retention time for access logs will be applied to notification logs as well.
accessLogRotationTime Long Optional   The maximum of time (in ms) before access logs are rotated. Set 0 to unset the current value and rotate logs using a size-based formula only. This value also applies to notification logs.