Auditing API

Auditing API

Couchbase Server APIs for audit management.

GET settings/audit

Returns information about the audit settings.

POST settings/audit/<settings>

GET /settings/audit

Description

This command retrieves information about the audit settings.

Syntax:

$ curl GET http://user:password@127.0.0.1:8091/settings/audit      

POST /settings/audit/<settings>

Description

This command configures the audit settings.

Syntax:

$ curl POST http://user:password@127.0.0.1:8091/settings/audit/auditEnabled
Enable audit. Use true/ false to set.
$ curl POST http://user:password@127.0.0.1:8091/settings/audit/logPath
Set the location for audit logs. The default location is /opt/couchbase/var/lib/couchbase/logs. You can set the location with REST, or with the Couchbase Web Console.
$ curl POST http://user:password@127.0.0.1:8091/settings/audit/rotateInterval
Set the time in seconds for the log rotating interval.