Complete the code to enable audit logging in Airflow's configuration file.
[logging]
audit_log_enabled = [1]Setting audit_log_enabled to True turns on audit logging in Airflow.
Complete the code to specify the audit log file path in Airflow's configuration.
[logging]
audit_log_file = [1]The audit log file should be a dedicated log file like /var/log/airflow/audit.log to store audit events.
Fix the error in the Airflow audit logging configuration line.
[logging]
audit_log_level = [1]The correct log level for audit logging is INFO. ERRORS is not a valid log level.
Fill both blanks to configure audit logging format and enable it.
[logging] audit_log_format = "[1]" audit_log_enabled = [2]
The audit log format should include timestamp, user, and action. Audit logging must be enabled with True.
Fill all three blanks to create a Python snippet that logs an audit event in Airflow.
from airflow.utils.log.logging_mixin import LoggingMixin logger = LoggingMixin().log def log_audit_event(user, action): logger.[1](f"User: [2], Action: [3]")
Use info method to log audit events at info level. The variables user and action hold the event details.