Troubleshooting Apache Ranger Admin¶
Log File Location for Apache Ranger Admin¶
There are couple of different ways you can access it
Privacera Diagnostic Tool¶
You can use the Privacera Diagnostic Tool to view the logs for Apache Ranger Admin. After logging into the Privacera Diagnostics Server, go the Ranger Admin pod and click on the "POD EXPLORER" tab and clice on the service_logs
link to list the logs.
Kubectl or K9s¶
You can get on to the Ranger pod using kubectl
or K9s
. The log files for Apache Ranger Admin pod are located in the following directory:
Bash | |
---|---|
Log Files¶
The following log file(s) are relevant for Apache Ranger Admin:
Log File | Description |
---|---|
ranger_admin.log | Contains the log messages for Apache Ranger Admin. |
Enable Debug Logging¶
To enable debug logging for Apache Ranger Admin, you can set the RANGER_ADMIN_LOG_LEVEL
configuration parameter to DEBUG
. This configuration allows you to view detailed logs for Apache Ranger Admin to troubleshoot issues.
Go to the server where Privacera Manager is installed and navigate to the configuration directory:
Bash | |
---|---|
Add the following property and set it to DEBUG
. If the property already exists, update the value to DEBUG
:
YAML | |
---|---|
After making the changes, save the file and run the following command to apply the configuration changes and restart the Ranger Admin service:
Step 1 - Setup which generates the helm charts. This step usually takes few minutes.
Step 2 - Apply the Privacera Manager helm charts.After restarting the Ranger Admin service, you should be able to see detailed logs in the Ranger Admin log files.
Revert to Default Log Level¶
It is not advised to run Apache Ranger Admin with debug logging enabled in production environments. To revert to the default log level, set the RANGER_LOG_LEVEL
configuration parameter to INFO
or comment out the property in the custom-vars/vars.ranger.admin.yml
file. After making the changes, save the file and run the commands to apply the configuration changes and restart the Ranger Admin service:
Debug Level Logging
Running Apache Ranger Admin with debug logging enabled can generate a large volume of log messages, which may impact the performance of the Ranger Admin service. It is recommended to use debug logging only for troubleshooting purposes and revert to the default log level once the issue is resolved.
- Prev topic: Apache Ranger Admin