Skip to content

Troubleshooting on OpenShift

When support asks for diagnostics from a Logster install on OpenShift (Helm chart), collect them with logster-support-bundle.sh. It is a read-only script: run it once. It reads the metrics from the Prometheus the chart installs, takes a small snapshot of the pods, and packs everything into one .tar.gz.

When to use this

Use it to debug a Logster that is already installed and not behaving as expected: no data in the console, slow or missing verdicts, errors, pods restarting. It reads the metrics of the running install, so it needs the chart's Prometheus and the Logster pods to have been running for a while.

It does not help when the installation itself fails or never finishes: there are no metrics to collect yet. In that case send the output of your helm install / helm upgrade and oc get pods -n <namespace> to Eunomatix support instead.

Download logster-support-bundle.sh

On an air-gapped site, download it on a connected machine and copy it to any machine that has oc access to the cluster. It does not run inside the cluster and needs no port-forward or route.


Prerequisites

  • bash and oc on your machine. Nothing else is needed (no Python, no jq).
  • You are logged in with oc login.
  • You may use the service proxy in the Logster namespace. Check with:

    oc auth can-i get services/proxy -n logster
    
  • The chart was installed with observability.enabled=true (the default).

  • --include-logs also needs read access to pod logs.

Running it

chmod +x logster-support-bundle.sh
./logster-support-bundle.sh

This collects the last 3 days from the namespace logster. A typical run takes under two minutes.

Option Meaning
-n, --namespace NS Logster namespace (default logster)
-w, --window DUR How far back to look: 30m, 12h, 3d, 1w (default 3d)
--no-snapshot Skip the cluster snapshot
--include-logs Also collect pod logs; asks for confirmation first
-y, --yes Answer yes to that confirmation
-o, --output-dir DIR Where to write the bundle (default: current directory)
-h, --help All options

Example, namespace logster-prod, last 12 hours, with logs:

./logster-support-bundle.sh -n logster-prod -w 12h --include-logs

Prometheus keeps its data on an emptyDir volume by default, so a restart of its pod loses the history. The bundle then covers less than the window you asked for, and README.txt says so. Run the script before restarting anything when you can.


What is collected

Folder Content
README.txt When and what was collected, flags used, and a list of queries that failed or returned nothing
prometheus/ Targets, rules, alerts, build info, TSDB status, oldest sample, list of metric names
metrics/ One JSON file per logster_*, process_* and up metric: current value and history over the window
derived/ One JSON file per common question: event rate, verdicts, LLM latency, Kafka lag, CPU and memory per service
cluster/ oc get pods -o wide, PVCs, deployments and statefulsets, image tags, resource requests and limits, oc adm top pods if allowed
logs/ Only with --include-logs: <pod>/<container>.log, plus <container>.previous.log after a restart

A failed query does not stop the run. It is listed in README.txt and the script carries on.

What is not collected

  • No Secrets, ConfigMap contents, environment variables, Helm values or Events.
  • No logster_license_info metric, because its labels carry the license identity.
  • No logs, unless you pass --include-logs.

Metric labels hold pod names and, with Splunk forwarders, endpoint names. Read the folder before sending it if that matters to you.

Logs are not redacted

Logs can hold usernames, hostnames, command lines and the license ID. The script asks for confirmation before collecting them and keeps them in their own logs/ folder. To send a bundle without them, delete that folder and create the archive again. The script prints the exact command at the end of the run.


Sending the bundle

The script writes a folder and an archive next to each other:

logster-support-<namespace>-<timestamp>/
logster-support-<namespace>-<timestamp>.tar.gz

Read through the folder if you want to see what is inside, then send the .tar.gz to your Eunomatix support contact. The script uploads nothing.


Common errors

Message What to do
not logged in to OpenShift Run oc login
namespace ... does not exist or you have no access Check the name, pass it with -n
no 'prometheus' service The chart was installed with observability.enabled=false, so there are no metrics to collect
you need 'get services/proxy' Ask a cluster admin for that permission in the namespace
Prometheus ... did not answer Check that the prometheus pod is running and ready