Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1ee0463

Browse files
authored
Merge pull request MicrosoftDocs#86653 from WentingWu666666/users/wentingwu/audit_whitelist
Configure audit whitelist
2 parents b02dcdc + 52e0f6f commit 1ee0463

File tree

1 file changed

+34
-1
lines changed

1 file changed

+34
-1
lines changed

articles/managed-instance-apache-cassandra/monitor-clusters.md

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,40 @@ Use the [Azure Monitor REST API](/rest/api/monitor/diagnosticsettings/createorup
132132
}
133133
```
134134

135+
## Audit whitelist
136+
137+
> ![NOTE]
138+
> This article contains references to the term *whitelist*, a term that Microsoft no longer uses. When the term is removed from the software, we'll remove it from this article.
139+
140+
By default, audit logging creates a record for every login attempt and CQL query. The result can be rather overwhelming and increase overhead. You can use the audit whitelist feature in Cassandra 3.11 to set what operations *don't* create an audit record. The audit whitelist feature is enabled by default in Cassandra 3.11. To learn how to configure your whitelist, see [Role-based whitelist management](https://github.com/Ericsson/ecaudit/blob/release/c2.2/doc/role_whitelist_management.md).
141+
142+
Examples:
143+
144+
* To filter out all **select and modification** operations for the user **bob** from the audit log, execute the following statements:
145+
146+
```
147+
cassandra@cqlsh> ALTER ROLE bob WITH OPTIONS = { 'GRANT AUDIT WHITELIST FOR SELECT' : 'data' };
148+
cassandra@cqlsh> ALTER ROLE bob WITH OPTIONS = { 'GRANT AUDIT WHITELIST FOR MODIFY' : 'data' };
149+
```
150+
151+
* To filter out all **select** operations on the **decisions** table in the **design** keyspace for user **jim** from the audit log, execute the following statement:
152+
153+
```
154+
cassandra@cqlsh> ALTER ROLE jim WITH OPTIONS = { 'GRANT AUDIT WHITELIST FOR SELECT' : 'data/design/decisions' };
155+
```
156+
157+
* To revoke the whitelist for user **bob** on all the user's **select** operations, execute the following statement:
158+
159+
```
160+
cassandra@cqlsh> ALTER ROLE bob WITH OPTIONS = { 'REVOKE AUDIT WHITELIST FOR SELECT' : 'data' };
161+
```
162+
163+
* To view current whitelists, execute the following statement:
164+
165+
```
166+
cassandra@cqlsh> LIST ROLES;
167+
```
135168

136169
## Next steps
137170

138-
* For detailed information about how to create a diagnostic setting by using the Azure portal, CLI, or PowerShell, see [create diagnostic setting to collect platform logs and metrics in Azure](../azure-monitor/essentials/diagnostic-settings.md) article.
171+
* For detailed information about how to create a diagnostic setting by using the Azure portal, CLI, or PowerShell, see [create diagnostic setting to collect platform logs and metrics in Azure](../azure-monitor/essentials/diagnostic-settings.md) article.

0 commit comments

Comments
 (0)