Stream your {astra} audit logs through {product} to an external system.
To enable audit log streaming, you must do one of the following:
-
Provide the Full Name of your {product} topic and the streaming tenant’s
client.conffile to {support-url}[IBM Support] or your {company} account representative. -
POST your configuration to the {devops-api-ref-url}#tag/Organization-Operations/operation/configureTelemetry[{astra} {devops-api} telemetry endpoint].
-
In the {astra-ui-link} header, click [grip], and then select Streaming.
-
Click the name of an existing tenant or create a tenant in AWS
us-east-2, and then create a namespace and topic in the tenant.ImportantAudit log streaming requires a streaming tenant in the AWS
us-east-2region. -
On the Namespace and Topics page, click the new topic, and then copy the topic’s Full Name, such as
persistent://aws-us-east-2-mk/NAMESPACE_NAME/TOPIC_NAME. -
If necessary, create additional audit log topics, and then record the Full Name for each topic. You can use topics to organize audit logs by event type or other criteria.
-
In the {astra-ui-link} header, click [grip], select Streaming, and then click the name of your audit log streaming tenant.
-
On the Connect tab, click Download client.conf.
-
To finalize the configuration, do one of the following:
-
Send your topic’s full name and the
client.conffile to {support-url}[IBM Support] or your {company} account representative, and then {company} will complete the setup.
-
You can use the {devops-api-ref-url}#tag/Organization-Operations/operation/configureTelemetry[{astra} {devops-api} telemetry endpoint] to configure audit log streaming instead of providing the configuration details to IBM Support.
-
In the {astra-ui-link} header, click [grip], and then select Admin.
-
Click Tokens, and then create an {astra} application token with the {organization-administrator-role} role.
-
Create the audit log streaming configuration using the values from the tenant’s
client.conffile and your {pulsar-short} configuration:curl -sS --fail -L -X POST "https://api.astra.datastax.com/v2/organizations/ORG_ID/telemetry/auditLogs" \ --header "Authorization: Bearer APPLICATION_TOKEN" \ --header "Accept: application/json" --data '{ "pulsar": { "endpoint": "pulsar+BROKER_SERVICE_URL", "auth_strategy": "token", "topic": "TOPIC_FULL_NAME", "auth_name": "token", "token": "PULSAR_AUTHENTICATION_TOKEN" } }'Replace the following:
-
ORG_ID: Your {astra} organization ID. -
APPLICATION_TOKEN: Your {astra} application token. -
BROKER_SERVICE_URL: The {product} broker service URL, such asssl://pulsar-aws-useast2.streaming.datastax.com:6651. -
TOPIC_FULL_NAME: The full name of the {product} topic where you want to stream audit logs. -
The
auth_strategyand other authentication details depend on your {pulsar-short} configuration.ResultHTTP/1.1 202 Accepted
-
-
Retrieve and verify the audit log streaming configuration:
curl -sS --fail -L -X GET "https://api.astra.datastax.com/v2/organizations/ORG_ID/telemetry/auditLogs" \ --header "Authorization: Bearer APPLICATION_TOKEN" \ --header "Accept: application/json"Result{ "pulsar": { "endpoint": "pulsar+ssl://pulsar-aws-useast2.streaming.datastax.com:6651", "topic": "persistent://aws-us-east-2-mk-2/default/audit-log", "auth_strategy": "token", "token": "********", "auth_name": "token" } }