Skip to content

You are viewing documentation for Immuta version 2023.1.

For the latest version, view our documentation for Immuta SaaS or the latest self-hosted version.

Application Logs

Audience: System Administrators

Content Summary: This page outlines commands to retrieve Helm values, pods, and logs of various Immuta components (such as the Fingerprint Service or Immuta Web Service) to identify installation issues.

Kubernetes

Cache Logs

kubectl logs -l app.kubernetes.io/component=cache,app.kubernetes.io/name=immuta --timestamps --tail -1

Database Logs

kubectl logs -l app.kubernetes.io/component=database,app.kubernetes.io/name=immuta --timestamps --tail -1

Fingerprint Logs

kubectl logs -l app.kubernetes.io/component=nginx-ingress,app.kubernetes.io/name=immuta --timestamps --tail -1

Note: You can enable debug logging for the Fingerprint Service in the Helm Chart with fingerprint.logLevel: DEBUG.

Proxy Logs

kubectl logs -l app.kubernetes.io/component=nginx-ingress,app.kubernetes.io/name=immuta --timestamps --tail -1

Query Engine Logs

kubectl logs -l app.kubernetes.io/component=query-engine,app.kubernetes.io/name=immuta --timestamps --tail -1

Web (Service) Logs

kubectl logs -l app.kubernetes.io/component=service,app.kubernetes.io/name=immuta --timestamps --tail -1

Helm Values

helm get values immuta > immuta_values.yaml

Patroni

Find Master Pod (Database)

kubectl get pods -l app.kubernetes.io/component=database,app.kubernetes.io/name=immuta,k8s.immuta.com/database-role=master

Find Master Pod (Query Engine)

kubectl get pods -l app.kubernetes.io/component=query-engine,app.kubernetes.io/name=immuta,k8s.immuta.com/database-role=master

List Patroni Members

kubectl exec -it <POD> -- patronictl list

List Patroni Members for Database Pods

kubectl get pods -l app.kubernetes.io/component=database,app.kubernetes.io/name=immuta,k8s.immuta.com/database-role=master --no-headers | cut -d" " -f1 | xargs -I{} kubectl exec -it {} -- patronictl list

List Patroni Members for Query Engine Pods

kubectl get pods -l app.kubernetes.io/component=query-engine,app.kubernetes.io/name=immuta,k8s.immuta.com/database-role=master --no-headers | cut -d" " -f1 | xargs -I{} kubectl exec -it {} -- patronictl list

Note: You can change the value of the log level to DEBUG for Patroni in the Helm Chart for the Database and Query Engine pods by using the following values:

  • database.patroniLogLevel: DEBUG
  • database.patroniRequestsLogLevel: DEBUG
  • queryEngine.patroniLogLevel: DEBUG
  • queryEngine.patroniRequestsLogLevel: DEBUG

SND

Cache Logs

docker logs immuta-cache

Database Logs

docker logs immuta-db

Fingerprint Logs

docker logs immuta-fingerprint

Proxy Logs

docker logs immuta-proxy

Web (Service) Logs

docker logs immuta-service