Skip to main content

Privacera Documentation

Unable to view Audit Server audits on Privacera Platform

Problem: You have configured Audit Server to receive the audits, but they are not visible.

Solution: Enable the application logs of Audit Server and debug the problem.

To debug the application logs of Audit Server, do the following:

Docker
  1. SSH to the instance as USER.

  2. Run the following command.

    cd ~/privacera/docker/
    vi privacera/auditserver/conf/log4j.properties
  3. At line 7, change INFO to DEBUG.

    log4j.category.com.privacera=DEBUG,logfile           
  4. If you want to enable debugging outside the Privacera package, change line 4 from WARN to DEBUG.

    log4j.rootLogger=DEBUG,logfile     
  5. Save the file.

  6. Restart Audit Server.

    ./privacera_services restart auditserver    
Kubernetes
  1. SSH to the instance as USER.

  2. Run the following command. Replace ${NAMESPACE} with your Kubernetes namespace.

    kubectl edit cm auditserver-cm-conf -n ${NAMESPACE}         
  3. At line 47, edit the following property and change it to DEBUG mode.

    log4j.category.com.privacera=DEBUG,logfile
    
  4. At line 44, enable DEBUG at root level.

    log4j.rootLogger=DEBUG,logfile     
  5. Save the file.

  6. Restart Audit Server.

    kubectl rollout restart statefulset auditserver -n ${NAMESPACE}