persistent://sn/system/audit_log_all
.Management
category.broker.configData
in Helm values:
captured
setting in the PULSAR_PREFIX_snAuditLogConfig
section.
To write events of different categories to separate topics, add the routes
setting in the PULSAR_PREFIX_snAuditLogConfig
section.
The following example captures audit log events in the Management
and Produce
categories. Events in the Produce
category are written to persistent://sn/system/audit_log_produce_allowed
if they succeed in permission, and written to persistent://sn-system/audit/audit_log_produce_denied
if they fail in permission.
pulsar-client
is also a helpful tool to get data from the audit log topic. You can use pulsar-client
for StreamNative Platform cluster and consume data from the audit log topic.
Category | Type | Event type | Description | Default value |
---|---|---|---|---|
Management | Cluster | CreateCluster | Create a Pulsar cluster. | true |
Cluster | UpdateCluster | Update Pulsar cluster information. | true | |
Cluster | DeleteCluster | Delete Pulsar cluster information. | true | |
Tenant | CreateTenant | Create a Pulsar tenant. | true | |
Tenant | UpdateTenant | Update tenant information. | true | |
Tenant | DeleteTenant | Delete a Pulsar tenant. | true | |
Namespace | CreateNamespace | Create a namespace. | true | |
Namespace | DeleteNamespace | Delete a namespace. | true | |
Topic | CreatePartitionedTopic | Create a partitioned topic. | true | |
Topic | UpdatePartitions | Update partitions for a partitioned topic. | true | |
Topic | DeletePartitionedTopic | Delete a partitioned topic. | true | |
Subscription | CreateSubscription | Create a subscription. | true | |
Subscription | DeleteSubscription | Delete a subscription. | true | |
Describe | Cluster | ListClusters | List Pulsar clusters. | false |
Cluster | GetCluster | Get cluster information. | false | |
Tenant | ListTenants | List Pulsar tenants. | false | |
Tenant | GetTenant | Get tenant information. | false | |
Namespace | ListNamespaces | List Pulsar namespaces. | false | |
Namespace | GetNamespace | Get namespace information. | false | |
Topic | ListTopics | List Pulsar topics. | false | |
Topic | ListPartitionedTopics | List partitioned Pulsar topics. | false | |
Topic | GetPartitions | Get partitions of a partitioned topic. | false | |
Subscription | ListSubscriptions | List subscriptions of a topic. | false | |
Produce | Producer | NewProducer | Create a producer to produce messages to the topic. | false |
Producer | CloseProducer | Close a producer. | false | |
Consume | Consumer | NewConsumer | Create a consumer to subscribe to the topic. | false |
Consumer | CloseConsumer | Close a consumer. | false |