A newer version of this documentation is available.

View Latest

Auditing API

    +
    Couchbase Server APIs for audit management.
    GET settings/audit

    Returns information about the audit settings.

    POST settings/audit

    GET /settings/audit

    Description

    This command retrieves information about the audit settings.

    Syntax:

    curl -X GET -u Administrator:password http://127.0.0.1:8091/settings/audit

    POST /settings/audit

    Description

    This command configures the audit settings.

    Syntax:

    curl -X POST -d auditdEnabled=true -u Administrator:password  http://127.0.0.1:8091/settings/audit

    Enable audit. The value of auditdEnabled can be either true or false.

    curl -X POST -d logPath='/opt/couchbase/var/lib/couchbase/logs' \
    -u Administrator:password http://127.0.0.1:8091/settings/audit

    Set the location for audit logs. The default location on Linux is /opt/couchbase/var/lib/couchbase/logs.

    curl -X POST -d rotateInterval=582300  -u Administrator:password http://127.0.0.1:8091/settings/audit

    Specify the time to elapse between log-rotations. The value of rotateInterval must be a number of whole minutes, expressed as seconds: therefore, the specified number must be a multiple of 60. The acceptable range is 900 (15 minutes) to 604800 (7 days), inclusive.