Enable Debug Logging on a Runtime Plane¶
On a Self-Managed or Partially Managed (D2P) runtime plane, set the DataServer log level from the connector UI.
Set the log level¶
- Open the connector and go to Access Control Configs → Kubernetes Configs → Logging.
- Select the level for:
- Application Log Level —
DEBUG/INFO/WARN/ERROR. The default isINFO. - Root Log Level —
DEBUG/INFO/WARN/ERROR. The default isWARN.
- Application Log Level —
- Select Save. The Runtime Manager redeploys the connector with the new log levels.
Read the logs¶
DataServer writes its logs to the /workdir/privacera-dataserver/logs/dataserver/ directory in the DataServer pod. The main log file is dataserver.log.
Replace the following placeholders with the actual values:
<namespace>: namespace of the runtime plane.<dataserver-pod>: DataServer pod name.
- Find the DataServer pod:
Bash - Read the DataServer log file:
Bash - To see the console output of the pod, such as startup messages, run:
Bash - Copy the logs to your machine:
Bash
Reset the log level¶
Debug logging writes a large volume of logs. After you collect the logs, set the log levels back to the defaults:
- Go to Access Control Configs → Kubernetes Configs → Logging.
- Set Application Log Level to
INFOand Root Log Level toWARN. - Select Save.
Note
Saving a log level change replaces the DataServer pod, and the log files in the pod are not kept. Copy the logs before you reset the log level.
- Prev topic: Troubleshooting for Privacera DataServer