How to enable debug logging for Credential Provider (CP) and Central Credential Provider (CCP) without a service restart

How to enable debug logging for Credential Provider (CP) and Central Credential Provider (CCP) without a service restart

106
Created On 11/10/26 10:58 AM - Last Modified 11/10/26 15:53 PM


Environment


20.7;21.1;21.2;21.3;21.4;21.5;12.1;21.6;21.7;21.8;21.9;12.2;21.10;21.11;21.12;12.4;12.3;22.1;22.2;12.5;22.3;22.4;22.5;22.6;12.6;22.8;22.9;22.10;12.7;22.11;13.0;22.12;23.1;23.3;23.2;23.4;23.5;23.6;13.2;13.1;23.7;23.8;23.9;23.10;23.11;23.12;14.0;24.1;24.2;24.3;24.4;13.3;14.2;24.5;24.6;24.7;24.8;14.3;24.9;24.10;24.11;24.12;14.4;25.1;25.2;13.4;13.5;25.3;25.4;25.5;25.6;14.1;14.5;14.6;25.7;25.8;25.9;13.6;25.10;25.11;13.7;25.12;15.0;26.1;14.7;14.8;26.4;26.5 Privileged Access Manager (PAM, self-hosted);Privilege Cloud Credential Provider;Central Credential Provider

Procedure


Windows

Enabling Debug Logging on Windows:


1. Log in to the CP/CCP server and navigate to the install directory of the CP/CCP instance. This is typically C:\Program Files\CyberArk\ApplicationPasswordProvider on Windows.

2. Open Command Prompt (CMD) as Administrator to the CP/CCP install directory, and use this command to verify if debugging is already enabled:

C:\Program Files\CyberArk\ApplicationPasswordProvider> appprvmgr showparms


If you do not see the debug parameters, continue to Step 3. If you do see them, debugging is already enabled.


3. Create a copy of the main_appprovider.conf.XXX.XX.XX file and append the Provider User name that was used to create the CP/CCP instance. The Provider User name can be found in the first few lines of the \Program Files\CyberArk\ApplicationPasswordProvider\Logs\APPconsole.log file.

For Example: Copy the main_appprovider.conf.Win64.11.02 file and rename the copy to main_appprovider.conf.Win64.11.02.Prov_AMPM-C21713458.
    
    
4. Open the main_appprovider.conf.XXX.XX.XX.PROV_USER file and delete ALL parameters except the parameters under the [Debug] section. Remove all hashtags (#) before the debug parameters. For example:

[Debug]
CacheDebugLevels=0,1,2
AppProviderDebugLevels=0,1,2,3,4,5
ProtocolDebugLevels=0,1,2


5. Save the file.

6. Open Command Prompt (CMD) as Administrator to the CP/CCP install directory, and use the following command to refresh the parameters:

C:\Program Files\CyberArk\ApplicationPasswordProvider> appprvmgr refreshparms

Operation ended successfully


7. Confirm that debugging was enabled successfully. You should see the values of the debug parameters set previously in the output of this command:

C:\Program Files\CyberArk\ApplicationPasswordProvider> appprvmgr showparms

Operation ended successfully
...
[Debug]
CacheDebugLevels=0,1,2
AppProviderDebugLevels=0,1,2,3,4,5
ProtocolDebugLevels=0,1,2
...


Disabling Debug Logging on Windows:


1. Log in to the CP/CCP server and navigate to the install directory of the CP/CCP instance. This is typically C:\Program Files\CyberArk\ApplicationPasswordProvider on Windows.

2. Either rename the main_appprovider.conf.XXX.XX.XX.PROV_USER file to main_appprovider.conf.XXX.XX.XX.PROV_USER.disabled or remove the file entirely.

3. Open Command Prompt(CMD) as Administrator to the CP/CCP install directory, and use the following command to refresh the parameters:

C:\Program Files\CyberArk\ApplicationPasswordProvider> appprvmgr refreshparms

Operation ended successfully


4. Confirm that debugging was disabled successfully. You should no longer see the values of the debug parameters in the output of this command:

C:\Program Files\CyberArk\ApplicationPasswordProvider> appprvmgr showparms

Operation ended successfully
...

 

Unix

Enabling Debug Logging on Unix:


1. Log in to the CP/CCP server and navigate to the configuration directory of the CP/CCP instance. This is typically /etc/opt/CARKaim/conf on Unix.

2. Use this command to verify if debugging is already enabled:

/opt/CARKaim/bin/appprvmgr showparms


If you do not see the debug parameters, continue to Step 3. If you do see them, debugging is already enabled.


3. Create a copy of the main_appprovider.conf.XX.XX file and append the Provider User name that was used to create the CP/CCP instance. The Provider User name can be found in the first few lines of the /var/opt/CARKaim/logs/APPconsole.log file.

For Example: Copy the main_appprovider.conf.11.02 file and rename the copy to main_appprovider.conf.11.02.Prov_AMPM-C21713458.
    
    
4. Open the main_appprovider.conf.XX.XX.PROV_USER file and delete ALL parameters except the parameters under the [Debug] section. Remove all hashtags (#) before the debug parameters. For example:

[Debug]
CacheDebugLevels=0,1,2
AppProviderDebugLevels=0,1,2,3,4,5
ProtocolDebugLevels=0,1,2


5. Save the file.

6. Use this command to refresh the parameters:

/opt/CARKaim/bin/appprvmgr refreshparms

Operation ended successfully


7. Confirm that debugging was enabled successfully. You should see the values of the debug parameters set previously in the output of this command:

/opt/CARKaim/bin/appprvmgr showparms

Operation ended successfully
...
[Debug]
CacheDebugLevels=0,1,2
AppProviderDebugLevels=0,1,2,3,4,5
ProtocolDebugLevels=0,1,2
...


Disabling Debug Logging on Unix:


1. Log in to the CP/CCP server and navigate to the configuration directory of the CP/CCP instance. This is typically /etc/opt/CARKaim/conf on Unix.

2. Either rename the main_appprovider.conf.XX.XX.PROV_USER file to main_appprovider.conf.XX.XX.PROV_USER.disabled or remove the file entirely.

3. Use this command to refresh the parameters:

/opt/CARKaim/bin/appprvmgr refreshparms

Operation ended successfully


4. Confirm that debugging was disabled successfully. You should no longer see the values of the debug parameters in the output of this command:

/opt/CARKaim/bin/appprvmgr showparms

Operation ended successfully
...

 



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000000qrSCAQ&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail