You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Dinesh Chitlangia (Jira)" <ji...@apache.org> on 2023/01/30 15:30:00 UTC

[jira] [Comment Edited] (HDDS-6603) Dynamically refresh debug operations for audit log

    [ https://issues.apache.org/jira/browse/HDDS-6603?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17682145#comment-17682145 ] 

Dinesh Chitlangia edited comment on HDDS-6603 at 1/30/23 3:29 PM:
------------------------------------------------------------------

[~Symious] - The current audit log implementation is done via Log4j2 which supports dynamic refresh via the following config. Log4j2 was specifically chosen as it provides dynamic refresh and async audit.

{{# Checks for config change periodically and reloads}}
{\{monitorInterval=5}}

See example file in our code base.
[https://github.com/apache/ozone/blob/master/hadoop-hdds/common/src/test/resources/auditlog.properties]

If your auditlog properties file contains that configuration, then you do not need to restart the service after a audit log configuration change.

Please share more details in case that is not working for you.


was (Author: dineshchitlangia):
[~Symious] - The current audit log implementation is done via Log4j2 which supports dynamic refresh via the following config. Log4j2 was specifically chosen as it provides dynamic refresh and async audit.

{{# Checks for config change periodically and reloads
monitorInterval=5}}

See example file in our code base.
https://github.com/apache/ozone/blob/master/hadoop-hdds/common/src/test/resources/auditlog.properties

If your auditlog properties file contains that configuration, then you do not need to restart the service after a audit log configuration change.

Please share more details in case that is not working for you.

> Dynamically refresh debug operations for audit log
> --------------------------------------------------
>
>                 Key: HDDS-6603
>                 URL: https://issues.apache.org/jira/browse/HDDS-6603
>             Project: Apache Ozone
>          Issue Type: Improvement
>            Reporter: Janus Chow
>            Assignee: Janus Chow
>            Priority: Major
>              Labels: pull-request-available
>
> In HDDS-6562, we introduced the feature to exclude specific operations for AuditLog.
> But the usage in PROD cluster is not convenient, we need to update the config and restart service to enable the new configuration.
> This ticket is to add a new servlet to refresh the configuration for AuditLog.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org