Skip to main content

VectorDB Audit Logs Reference

This feature is available only with the Enterprise plan or higher, and BYOC deployments.

On Zilliz Cloud, audit logs have the following syntax:

json
{
"date": "<timestamp>",
"action": "<action_type>",
"cluster_id": "<unique_cluster_identifier>",
"database": "<database_name>",
"interface": "<interface_type>",
"log_type": "<log_type>",
"params": {
"<key1>": "<value1>",
"<key2>": "<value2>",
...
},
"result": <result_code>,
"status": "<action_status>",
"time": <timestamp>,
"trace_id": "<unique_trace_identifier>",
"user": "<user_identifier>"
}

Field

Type

Description

date

String (ISO 8601 format)

The timestamp when the action occurred, in UTC (e.g., "2025-01-21T08:38:39.494527Z").

action

String

The action performed (e.g., "DescribeCollection"). For a list of actions available, refer to List of actions.

cluster_id

String

Unique identifier for the cluster where the action occurred (e.g. "in01-b5a7e190615xxxf").

database

String

The name of the database involved in the action (e.g., "default").

interface

string

The interface through which the action is performed (e.g., "Grpc", "Restful").

log_type

String

The type of log entry (e.g., "AUDIT").

params

Object (key-value pairs)

Additional parameters related to the action. This can include things like collection, consistency_level, etc.

result

Integer

Result code or status code (e.g., 0 for success, other codes may indicate errors). Unavailable when the status is Receive.

status

String

The status of the action being logged (e.g., Receive, Success, Failed).

  • Receive: The action has been received by the system but is not completed.

  • Success: The action has been successfully completed without any issues.

  • Failed: The action failed.

time

Integer (epoch time, milliseconds)

Timestamp in milliseconds since 1970 (epoch time).

trace_id

String

Unique identifier for tracing the request across systems. This helps link logs together.

user

String

The user who performed the action.

List of actions

The following tables summarize actions on the data plane that can be logged for auditing.

Connection

actionDescription
ConnectEstablish a connection

Database

actionDescription
ListDatabasesView all databases in the current instance
DescribeDatabaseView the details of a database
CreateDatabaseCreate a database
DropDatabaseDrop a database
AlterDatabaseModify the properties of a database

Collection

actionDescription
GetLoadStateCheck the load status of a collection
GetLoadingProgressCheck the loading progress of a collection
DescribeCollectionView the details of a collection
CreateCollectionCreate a collection
HasCollectionCheck if a collection exists in the database
DropCollectionDrop a collection
LoadCollectionLoad a collection
AlterCollectionAlter the schema or configuration of a collection
ShowCollectionsView all collections with collection privileges
RenameCollectionRename a collection
ReleaseCollectionRelease a collection
GetCollectionStatisticsObtain the statistics of a collection (eg. The number of entities in a collection)
FlushPersist all entities in a collection to a sealed segment. Any entity inserted after the flush operation will be stored in a new segment.
GetFlushStateCheck the status of the collection flush operation
CreateAliasCreate an alias for a collection
DescribeAliasDescribe the alias of a collection
AlterAliasChange the alias associated with a collection
ListAliasesView all aliases of a collection
DropAliasDrop the alias of a collection
GetReplicasGet the replicas of a collection

Partition

actionDescription
CreatePartitionCreate a partition
HasPartitionCheck whether a partition exists
LoadPartitionsLoad one or more partitions
ShowPartitionsView all partitions in a collection
DropPartitionDrop a partition
ReleasePartitionsRelease one or more partitions
GetPartitionStatisticsObtain the statistics of a partition

Index

actionDescription
CreateIndexCreate an index
DescribeIndexView the progress of index building for a collection
AlterIndexUpdate the configuration or parameters of an existing index
GetIndexStateUpdate the configuration or parameters of an existing index
GetIndexStatisticsRetrieve the current state of an index (e.g., building, built, or failed)
GetIndexBuildProgressObtain detailed statistics about an index, such as memory usage or indexed entity count
DropIndexRetrieve detailed index data for a specific segment in a collection

Entity

actionDescription
InsertInsert entities
QueryConduct a query
SearchConduct a search
HybridSearchConduct a hybrid search
DeleteDelete entities
UpsertUpsert entities

RBAC

actionDescription
SelectRoleRetrieve the list of roles available in the current instance
CreateRoleDefine a new role for managing user permissions
DropRoleDrop a role
OperateUserRoleAssign a role to a user or remove a role from a user
ListPrivilegeGroupsView all privilege groups in the current instance
OperatePrivilegeV2Add or remove specific privileges from a privilege group
SelectGrantRetrieve a list of all privilege grants assigned to a specific role or user
CreateCredentialCreate a new credential (e.g., API key or token) for accessing the system
UpdateCredentialUpdate the properties or permissions of an existing credential
DeleteCredentialRemove a credential from the system
ListCredUsersRetrieve a list of all users associated with specific credentials

Others

actionDescription
AuthorizeLogged only when authorization fails, with the status recorded as Refused.
Ctrl I