Hi Sagar,

Vinay can confirm, but as far as I am aware we have no current plans to
implement audit logging to a table directly, but the implementation is
fully pluggable (like compaction, compression, etc ...). Check out the blog
post [1] and documentation [2] Vinay wrote for more details, but the short
version is you can implement a custom IAuditLogger class that lives in the
"org.apache.cassandra.audit" package, put the jar in the Cassandra
classpath, and then load it by changing the "logger" configuration option
[3]. For example, if you implemented
"org.apache.cassandra.audit.TableAuditLogger" class you would build a jar,
put that in the libs directory, and then configure the "logger" property to
be "TableAuditLogger".

The interface tried to be simple so you should more or less have to define
the log(AuditLogEntry) method. If you're interested in making a table audit
logger and are having difficulty with the documentation/implementation
please free to reach out to Vinay (vinaykumar...@gmail.com) or myself. We'd
love to get the docs in a place where it's easy for users to get exactly
the audit logging behavior they need.

Cheers,
-Joey

[1] http://cassandra.apache.org/blog/2018/10/29/audit_logging_cassandra.html
[2] http://cassandra.apache.org/doc/latest/operating/audit_logging.html
[3]
http://cassandra.apache.org/doc/latest/operating/audit_logging.html#cassandra-yaml-configurations-for-auditlog

On Wed, Feb 27, 2019 at 9:44 AM Rahul Singh <rahul.xavier.si...@gmail.com>
wrote:

> I understand why you’d want it but it would add more data management to
> the database. Generally for logging you could consider putting into ELK and
> then it can be more queried on arbitrarily.
> On Feb 27, 2019, 12:42 PM -0500, Dinesh Joshi <djos...@icloud.com.invalid>,
> wrote:
> > I don’t believe there is a plan to do it. If it were available in a
> table how would that help you?
> >
> > Dinesh
> >
> > > On Feb 27, 2019, at 9:32 AM, Sagar <sagarmeansoc...@gmail.com> wrote:
> > >
> > > Hey All,
> > >
> > > While following some of the recent developments on Cassandra, I found
> the
> > > new feature on Audit logging quite useful.
> > >
> > > I wanted to understand is there any plan of pushing the audit logs to a
> > > table?
> > >
> > > Thanks!
> > > Sagar.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscr...@cassandra.apache.org
> > For additional commands, e-mail: dev-h...@cassandra.apache.org
> >
>

Reply via email to