rcollect Logs - Collecting Kubernetes and Node Diagnostics - Rafay Product Documentation

Generate Support Logs with Rcollect

Rcollect Logs (rcollect)

rcollect is a CLI tool that collects a complete technical dump of the Rafay Controller and its associated Rafay services running on Kubernetes. It is used when customers need to share diagnostic information with Support without manually gathering multiple sets of logs. The tool produces a compressed archive containing the collected data.


Why this tool exists


How it helps customers share logs with Support


Packaging and How to Obtain It

The rcollect tool is included as part of the controller package and is available as a standalone executable after extracting the controller tarball.

Steps to locate rcollect:

tar -xzf <controller-package>.tar.gz
chmod +x rcollect
mv rcollect /usr/local/bin/

How to Run rcollect

The rcollect tool can be executed with different subcommands depending on the type of resources you want to collect.

Each run will generate a tarball (.tar.gz) containing the collected logs and diagnostics, which can be shared with Rafay Support.

Example 1: Collect both Kubernetes and Node resources

./rcollect allresources --kubeconfig gke-config.yaml

This command collects both Kubernetes and node-level diagnostics in a single run.

Output

Collecting both Kube and Node resources
Collecting Node Resources dump in /home/ubuntu/3.3/sample-test-infra_13-August-2025-071102
Collecting system resources.
Created tarball at /home/ubuntu/3.3/sample-test-infra_13-August-2025-071102.tar.gz.
Using kubeconfig from custom-config.yaml
Collecting Kube Resources in /home/ubuntu/3.3/sample_on-prem-123456_us-central1-a_sample-controller_13-August-2025-071156
Successfully collected kube resources.
Created tarball at /home/ubuntu/3.3/sample_on-prem-123456_us-central1-a_sample-controller_13-August-2025-071156.tar.gz.

Example 2: Collect only Node resources

./rcollect noderesources

This command collects only node-level diagnostics from the controller where rcollect is executed.

Output

Collecting Node Resources dump in /home/user/output-directory/node-resources_timestamp
Collecting system resources.
Created tarball at /home/user/output-directory/node-resources_timestamp.tar.gz.

Example 3: Collect only Kubernetes resources

./rcollect kuberesources --kubeconfig gke-config.yaml

This command collects only Kubernetes-related diagnostics for Rafay services running on the controller.

Output

Using kubeconfig from custom-config.yaml
Collecting Kube Resources in /home/user/output-directory/kube-resources_timestamp
Successfully collected kube resources.
Created tarball at /home/user/output-directory/kube-resources_timestamp.tar.gz.

💡 Note