{
  "schema_version": 2,
  "id": "operate/kubernetes/logs",
  "title": "Redis Enterprise Software logs on Kubernetes",
  "url": "https://redis.io/docs/latest/operate/kubernetes/7.8.6/logs/",
  "summary": "This section provides information about how logs are stored and accessed.",
  "content": "\n## Logs\n\nEach redis-enterprise container stores its logs under `/var/opt/redislabs/log`.\nWhen using persistent storage this path is automatically mounted to the\n`redis-enterprise-storage` volume.\nThis volume can easily be accessed by a sidecar, i.e. a container residing on the same pod.\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-10-21T09:46:20-07:00",
  "children": [{"id":"operate/kubernetes/logs/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/7.8.6/logs/collect-logs/"}]
}
