{
  "id": "logs",
  "title": "Logs",
  "url": "https://redis.io/docs/latest/operate/kubernetes/8.0/logs/",
  "summary": "Access and manage Redis Enterprise logs on Kubernetes for monitoring and troubleshooting.",
  "content": "\nAccess and manage Redis Enterprise logs on Kubernetes for monitoring, troubleshooting, and debugging your Redis Enterprise deployment. Logs provide valuable insights into cluster operations, database performance, and system health.\n\n## Log collection and access\n\nLearn how to collect and access logs from your Redis Enterprise deployment:\n\n- [Collect logs](https://redis.io/docs/latest/operate/kubernetes/logs/collect-logs) - Methods for collecting logs from Redis Enterprise pods and containers\n\n## Log storage and access\n\nEach Redis Enterprise container stores its logs under `/var/opt/redislabs/log`. When using persistent storage, this path is automatically mounted to the `redis-enterprise-storage` volume, making logs accessible through sidecar containers or external log collection tools.\n\nFor example, in the REC (Redis Enterprise Cluster) spec you can add a sidecar container, such as a busybox, and mount the logs to there:\n\n```yaml\nsideContainersSpec:\n  - name: busybox\n    image: busybox\n    args:\n      - /bin/sh\n      - -c\n      - while true; do echo \"hello\"; sleep 1; done\n\n    volumeMounts:\n    - name: redis-enterprise-storage\n      mountPath: /home/logs\n      subPath: logs\n```\n\nNow the logs can be accessed from in the sidecar. For example by running\n\n```kubectl exec -it \u003cpod-name\u003e -c busybox -- tail home/logs/supervisord.log```\n\nThe sidecar container is user determined and can be used to format, process and share logs in a specified format and protocol.\n",
  "tags": ["docs","operate","kubernetes"],
  "last_updated": "2026-06-04T14:49:57+01:00",
  "children": [{"id":"collect-logs","summary":"Run the log collector script to package relevant logs into a tar.gz file to send to Redis Support for help troubleshooting your Kubernetes environment.","title":"Collect logs","url":"https://redis.io/docs/latest/operate/kubernetes/8.0/logs/collect-logs/"}]
}
