Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doc 851 log-collector script instructions #1486

Merged
merged 6 commits into from
Aug 13, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions content/platforms/kubernetes/tasks/run-log-collector-script.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
Title: Run the log collector script
linkTitle: Run log_collector.py
kaitlynmichael marked this conversation as resolved.
Show resolved Hide resolved
description: 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.
weight: 89
alwaysopen: false
categories: ["Platforms"]
aliases:
---

The Redis Enterprise cluster (REC) log collector script ([`log_collector.py`](https://github.com/RedisLabs/redis-enterprise-k8s-docs/blob/master/log_collector/log_collector.py)) creates and fills a directory with the relevant logs for your environment. These logs will help the support team with troubleshooting.

1. Download the [`log_collector.py`](https://github.com/RedisLabs/redis-enterprise-k8s-docs/blob/master/log_collector/log_collector.py) file.
2. Run the script on the system that runs your `kubectl` or `oc` commands.
- Pass `-n` parameter to run on a different namespace than the one you are currently on.
- Run with `-h` to see options.

```bash
python 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 >}}

3. Upload the resulting `tar.gz` file containing all the logs to [Redis Support](https://support.redislabs.com/).