📣
TiDB Cloud Essential is now in public preview. Try it out →

ticloud serverless audit-log download

Download the database audit log files from a TiDB Cloud Essential cluster.

ticloud serverless audit-log download [flags]

Examples

Download the database audit logs in interactive mode:

ticloud serverless audit-log download

Download the database audit logs in non-interactive mode:

ticloud serverless audit-log download -c <cluster-id> --start-date <start-date> --end-date <end-date>

Flags

FlagDescriptionRequiredNote
-c, --cluster-id stringThe ID of the cluster.YesOnly works in non-interactive mode.
--start-date stringThe start date of the audit log you want to download in the format of YYYY-MM-DD, for example, 2025-01-01.YesOnly works in non-interactive mode.
--end-date stringThe end date of the audit log you want to download in the format of YYYY-MM-DD, for example, 2025-01-01.YesOnly works in non-interactive mode.
--output-path stringThe path to download the audit logs. If not specified, logs are downloaded to the current directory.NoOnly works in non-interactive mode.
--concurrency intThe number of concurrent downloads. The default value is 3.NoWorks in both interactive and non-interactive modes.
--forceDownloads audit logs without confirmation.NoWorks in both interactive and non-interactive modes.
-h, --helpShows help information for this command.NoWorks in both interactive and non-interactive modes.

Inherited flags

FlagDescriptionRequiredNote
-D, --debugEnables debug mode.NoWorks in both interactive and non-interactive modes.
--no-colorDisables color output.NoOnly works in non-interactive mode.
-P, --profile stringSpecifies the profile to use from your configuration file.NoWorks in both interactive and non-interactive modes.

Feedback

If you have any questions or suggestions on the TiDB Cloud CLI, feel free to create an issue. Also, we welcome any contributions.

Was this page helpful?