Information
Logging the access to the application server allows the system administrators to monitor user accounts. By logging successful/unsuccessful logons, the system administrator can determine if an account is compromised (e.g., frequent logons) or is in the process of being compromised (e.g., frequent failed logons) and can take actions to thwart the attack.
Logging successful logons can also be used to determine accounts that are no longer in use.
Solution
Launch the jboss-cli management interface.
Connect to the server by typing 'connect', authenticate as a user in the Superuser role, and run the following command:
For a Managed Domain configuration:
'host=master/server/<SERVERNAME>/core-service=management/access=audit/logger=audit-log:write-attribute(name=enabled,value=true)'
For a Standalone configuration:
'/core-service=management/access=audit/logger=audit-log:write-attribute(name=enabled,value=true)'