To change logging level, permanently, in Identity Manager, we need to modify the standalone XML and add new logger categories.
In vApp, config user has not got the right permissions to modify the relevant XML (ca-standalone-full-ha.xml) , so the way to modify it is done by launching jboss-cli.sh and setting the required category level.
Identity Suite 14.x
Following the steps detailed in the official JBoss manual (https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/6.4/html/administration_and_configuration_guide/sect-logging_configuration_in_the_cli) in order for us set a new logger for a certain category, the following commands are to be executed:
Once triggered jboss-cli.sh (you should have a management user defined already, if not use sudo add-user.sh)
When connected (using connect) the following 3 commands should be triggered, in the following order:
/subsystem=logging/logger=<CATEGORY>:add
/subsystem=logging/logger=<CATEGORY>:write-attribute(name="level", value="<LEVEL>")
/subsystem=logging/logger=<CATEGORY>:read-resource
Once done, reload the changes
:reload
For example, this is how it looks in a local vApp, setting category im.analytics.blthanalyticsforbulk to level FATAL
>:/opt/CA/wildfly-idm/bin > ./jboss-cli.sh
You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands.
[disconnected /] connect
Authenticating against security realm: ManagementRealm
Username: <jbossuser>
Password:
> /subsystem=logging/logger=im.analytics.blthanalyticsforbulk:add
{"outcome" => "success"}
> /subsystem=logging/logger=im.analytics.blthanalyticsforbulk:write-attribute(name="level", value="FATAL")
{"outcome" => "success"}
> /subsystem=logging/logger=im.analytics.blthanalyticsforbulk:read-resource
{
"outcome" => "success",
"result" => {
"category" => "im.analytics.blthanalyticsforbulk",
"filter" => undefined,
"filter-spec" => undefined,
"handlers" => undefined,
"level" => "FATAL",
"use-parent-handlers" => true
}
}
> :reload
{
"outcome" => "success",
"result" => undefined
}
>