Re: Enable audit log

2025-01-15 Thread Sebastian Albrecht
On Tue, 14 Jan 2025 at 17:02, Andrew Weaver wrote: > I can confirm that on 4.0.x it works as expected because we use this > extensively. > Hi Andrew, that is good to hear. Although i also tried it with the latest 4.0.15 and see worse behaviour: Activating auditlog with nodetool shows in syslog:

Re: Enable audit log

2025-01-15 Thread Sebastian Albrecht
On Tue, 14 Jan 2025 at 17:00, Dmitry Konstantinov wrote: > Hi all, > > > > https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/audit/AuditLogManager.java#L204 > > I suppose this logic should work during a startup: > https://github.com/apache/cassandra/blob/trunk/src/java/

Re: Enable audit log

2025-01-14 Thread Andrew Weaver
I can confirm that on 4.0.x it works as expected because we use this extensively. On Tue, Jan 14, 2025, 10:00 AM Jeff Jirsa wrote: > Surprising. Feels like something that should change. If it’s enabled in > yaml, why WOULDNT we want it started on start? > > > > On Jan 14, 2025, at 7:40 AM, Štefa

Re: Enable audit log

2025-01-14 Thread Dmitry Konstantinov
Hi all, > https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/audit/AuditLogManager.java#L204 I suppose this logic should work during a startup: https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/audit/AuditLogManager.java#L109 , shouldn't? It wo

Re: Enable audit log

2025-01-14 Thread Jeff Jirsa
Surprising. Feels like something that should change. If it’s enabled in yaml, why WOULDNT we want it started on start? > On Jan 14, 2025, at 7:40 AM, Štefan Miklošovič wrote: > > Hi Sebastian, > > the behaviour you see seems to be a conscious decision: > > https://github.com/apache/cassand

Re: Enable audit log

2025-01-14 Thread Štefan Miklošovič
Hi Sebastian, the behaviour you see seems to be a conscious decision: https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/audit/AuditLogManager.java#L204 On Tue, Jan 14, 2025 at 4:21 PM Sebastian Albrecht < sebastian.albre...@agido.com> wrote: > Hi, > i am using cassand

Enable audit log

2025-01-14 Thread Sebastian Albrecht
Hi, i am using cassandra 4.1 and i want activate audit logging. I set the following values in cassandra.yml and expect that logging starts after the next cassandra start: audit_logging_options: enabled: true logger: - class_name: FileAuditLogger included_categories: DCL, ERROR, AUTH Afte