Collect logs with CLI or REST API

Several CLI commands and REST API

Using CLI commands

You can use the CLI command cbcollect_info, which is one of the most important diagnostic tools used by Couchbase technical support.

The other three CLI commands you can use to start and stop log collection and to read the log collection status:


The Logs REST API provides the REST API endpoints for retrieving log and diagnostic information as well as how an SDK can add entries into a log.

To retrieve log information use the /diag and /sasl_logs REST endpoints.

To create client logs use client logs.