Enable audit Logging on all keycloak instances

i have a project to ensure we have both the admin and user audit logging enabled in all keycloak configurations for both existing and future deployed systems. is there any way we can do it automatically in one go and what steps do we have to take to enable these log events.