content/operate/kubernetes/7.8.4/logs/collect-logs.md
The Redis Enterprise cluster (REC) log collector script (log_collector.py) creates and fills a directory with the relevant logs for your environment. These logs will help the support team with troubleshooting.
As of version 6.2.18-3, the log collector tool has two modes:
{{<note>}} This script requires Python 3.6 or later. {{</note>}}
Download the latest log_collector.py file.
Have a K8s administrator run the script on the system that runs your kubectl or oc commands.
-n parameter to run on a different namespace than the one you are currently on-m parameter to change the log collector mode (all or restricted)-h to see more optionspython log_collector.py
{{< note >}} If you get an error because the yaml module is not found, install the pyYAML module with pip install pyyaml.
{{< /note >}}
Upload the resulting tar.gz file containing all the logs to Redis Support.