Many of our customers choose to run Cortex application in a self hosted manner. At times backend application logs can be needed to facilitate troubleshooting. To ease collection and packaging of these logs, we offer a script called Brain Dump, which will collect and package the following information:
helm-manifest.yaml, a YAML representation of the Kubernetes resources that were generated for the release's chart(s).
pods.json, a JSON representation for the list of all Kubernetes pods in the Cortex namespace with respective details.
backend-logs.log, recent backend application logs associated with the Cortex deployment.
- Navigate to the appropriate directory.
braindump.shfrom Brain Dump.
- Using your favorite text editor, edit
braindump.shto make the appropriate edits to reflect your environment on the following variables:
- Make the shell script executable using
chmod u+x braindump.sh.
- Execute the script
- Upload the tarball file named
braindump.tar.gzto your ticket for further analysis.