Skip to content

Commit 96aa4d7

Browse files
authored
Merge pull request #578 from percona/patrickbirch-patch-1
Update write-filter-definitions.md
2 parents 44353fd + b427e8c commit 96aa4d7

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

docs/write-filter-definitions.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ When you’re setting up audit log filters in Percona Server for MySQL, you use
2525
|---|---|
2626
| Reduced Log Volume and Storage | By defining specific rules for what events to log (inclusive filters), you significantly reduce the amount of data written to the audit log. This minimizes log file size, reduces storage requirements, and lowers maintenance overhead. |
2727
| Improved Performance | Smaller log files lead to faster log rotations and less disk I/O, which can improve overall server performance. Reducing log volume also decreases the impact of auditing on the database server itself. |
28-
| Enhanced Security Focus | Instead of logging every single event (which can be overwhelming), you can focus on the most critical events. For example, you can prioritize logging events related to:<br> * Sensitive data access: Log queries that access or modify critical tables.<br> - User account activity: Monitor user logins, password changes, and privilege grants.<br> * DML operations: Log INSERT, UPDATE, and DELETE statements on specific tables.<br> * DDL operations: Log schema changes like CREATE TABLE, ALTER TABLE, and DROP TABLE. |
28+
| Enhanced Security Focus | Instead of logging every single event (which can be overwhelming), you can focus on the most critical events. For example, you can prioritize logging events related to:<br> * Sensitive data access: Log queries that access or modify critical tables.<br> * User account activity: Monitor user logins, password changes, and privilege grants.<br> * DML operations: Log INSERT, UPDATE, and DELETE statements on specific tables.<br> * DDL operations: Log schema changes like CREATE TABLE, ALTER TABLE, and DROP TABLE. |
2929
| Simplified Log Analysis | By filtering out irrelevant events, you make it easier to analyze and investigate security incidents or performance issues. You can quickly identify and focus on the most important events in the audit log. |
30-
| Compliance | Many compliance regulations (e.g., PCI DSS, HIPAA) require organizations to audit database activity. Well-defined audit log filters help you meet these compliance requirements by ensuring that the necessary events are being logged. |
30+
| Compliance | Many compliance regulations (for example, PCI DSS, HIPAA) require organizations to audit database activity. Well-defined audit log filters help you meet these compliance requirements by ensuring that the necessary events are being logged. |
3131
| Resource Optimization | By minimizing log volume and optimizing the auditing process, you can conserve valuable system resources, such as CPU, memory, and disk space. |
3232

3333
## Basic structure
@@ -319,7 +319,10 @@ This example defines a filter that `excludes` (negate: true) all table access ev
319319
"name": "table_access",
320320
"user": ["admin", "developer"],
321321
"database": ["financial"],
322-
"event": ["update", "delete"],
322+
"event": [
323+
{"name":"update"},
324+
{"name":"delete"}
325+
],
323326
"status": [1]
324327
},
325328
{
@@ -357,8 +360,6 @@ After you name your filter with an identifier, you attach your rules. The identi
357360

358361
Remember that when you apply new filter settings to an existing identifier, the system replaces the old settings. It doesn't add the new rules to what's already there.
359362

360-
361-
362363
```sql
363364
SET GLOBAL audit_log_filter_id = 'financial_tracking';
364365
```
@@ -374,13 +375,20 @@ SET GLOBAL audit_log_filter = '{
374375
"user": ["admin", "finance_team"],
375376
"database": ["financial_db"],
376377
"table": ["accounts", "transactions"],
377-
"event": ["insert", "update", "delete"],
378+
"event": [
379+
{"name":"insert"},
380+
{"name":"update"},
381+
{"name":"delete"],
382+
]
378383
"status": [0, 1]
379384
},
380385
{
381386
"name": "connection",
382387
"user": ["admin", "finance_team"],
383-
"event": ["connect", "disconnect"],
388+
"event": [
389+
{"name":"connect"},
390+
{"name":"disconnect"}
391+
],
384392
"status": [0, 1]
385393
}
386394
]

0 commit comments

Comments
 (0)