[
https://issues.apache.org/jira/browse/CASSANDRA-17948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17614988#comment-17614988
]
Stefan Miklosovic commented on CASSANDRA-17948:
-----------------------------------------------
I forgot to mention that this would be turned off by default, one would have to
uncomment the related appender in logback.xml.
One more point is that there isĀ org.apache.cassandra.audit.FileAuditLogger
which logs by org.slf4j.Logger all audit logs on "info" level. So, if we enable
this appender and we put audit logs into log file, audit logs would be visible
in the virtual table.
However, this would be visible only when a user in cqlsh is super user as
regular users can not query system_views tables.
I am not sure if we want to prevent this from happening even for super users,
we might - we do have the information what logger has logged the message we
want to append so we would just filter out that logger in FileAuditLogger.
This issue would be even more complicated to solve if we didn not use appender
because we would not know what to actually skip when we read raw lines right
from the file on disk.
> Get warning and errors through virtual tables
> ---------------------------------------------
>
> Key: CASSANDRA-17948
> URL: https://issues.apache.org/jira/browse/CASSANDRA-17948
> Project: Cassandra
> Issue Type: New Feature
> Reporter: Michiel Saelen
> Priority: Normal
>
> The warnings and errors are currently only accessible through Cassandra logs.
> Automating the monitoring of the nodes would be much easier/secure if we can
> make use of virtual tables to get the logs.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]