Skip to content

[Bug] enable_audit_log configuration not taking effect - always shows false despite correct setup #16706

@advccyang

Description

@advccyang

Search before asking

  • I searched in the issues and found nothing similar.

Version

  • Versions Tested: 2.0.5, 2.0.4, 2.0.3, 1.3.4-1 (standalone mode)
  • Deployment: Docker (apache/iotdb:*-standalone images)

Describe the bug and provide the minimal reproduce step

  1. Set configuration via environment variable or in iotdb-system.properties:
environment:
  - enable_audit_log=true
  1. Check runtime configuration:
docker logs iotdb-service 2>&1 | grep -i "enableAuditLog"

What did you expect to see?

Expected:

enableAuditLog=true;

What did you see instead?

Actual:

enableAuditLog=false;

Anything else?

  1. Configuration file contains enable_audit_log=true correctly
  2. Startup log shows: append enable_audit_log=true /iotdb/conf/iotdb-system.properties
  3. But runtime always shows: enableAuditLog=false;
  4. Audit log file /iotdb/logs/log_datanode_audit.log is created but remains empty

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions