Collecting Logs and Debug Information
Istio has many moving parts. When a problem is reported by a customer, it is useful to know the full state of system.
curl https://raw.githubusercontent.com/istio/istio/c80033/bin/dump_kubernetes.sh | sh -s -- -z
Or run the script locally from the root of this repository:
tools/dump_kubernetes.sh -z
Then send the produced "istio-dump.tar.gz" along with your reported problem.
If you are unable to follow option A and run the script, manually gather the following info:
- State of all pods running in the system. (
kubectl get pods -o yaml --all-namespaces
) - services
- Deployments
- Endpoints
kubectl get pods,services,deployments,endpoints --all-namespaces -o yaml > k8s_resources.yaml
-
Names of secrets in
istio-system
:kubectl --namespace istio-system get secrets
-
Config maps in
istio-system
:kubectl --namespace istio-system get cm -o yaml
-
Logs from all istio-components and istio-sidecars. This should include both current and previous logs.
foreach kubectl logs POD_name -c istio-proxy
-
Mixer Logs:
kubectl logs -n istio-system -listio=mixer -c mixer
kubectl logs -n istio-system -listio=policy -c mixer
kubectl logs -n istio-system -listio=telemetry -c mixer
-
Pilot Logs:
kubectl logs -n istio-system -listio=pilot -c discovery
kubectl logs -n istio-system -listio=pilot -c istio-proxy
-
All Istio configuration artifacts.
kubectl get $(kubectl get customresourcedefinitions -o jsonpath="{.items[*].metadata.name}" | tr " " ",") --all-namespaces -o yaml
Debug can be turned on my using Ctrl-z on Mixer on port 9876
- Port forward to Ctrl-z
kubectl --namespace istio-system port-forward istio-policy-66f9d57f54-kvrl9 9876
Open browser tohttp://localhost:9876/scopez/
Visit istio.io to learn how to use Istio.
- Preparing for Development Mac
- Preparing for Development Linux
- Troubleshooting Development Environment
- Repository Map
- GitHub Workflow
- Github Gmail Filters
- Using the Code Base
- Developing with Minikube
- Remote Debugging
- Verify your Docker Environment
- Istio Test Framework
- Working with Prow
- Test Grid
- Code Coverage FAQ
- Writing Good Integration Tests
- Test Flakes
- Release Manager Expectations
- Preparing Istio Releases
- 1.5 Release Information
- 1.6 Release Information
- 1.7 Release Information
- 1.8 Release Information
- 1.9 Release Information
- 1.10 Release Information
- 1.11 Release Information
- 1.12 Release Information
- 1.13 Release Information
- 1.14 Release Information
- 1.15 Release Information
- 1.16 Release Information
- 1.17 Release Information
- 1.18 Release Information
- 1.19 Release Information
- 1.20 Release Information
- 1.21 Release Information
- 1.22 Release Information
- Collecting Logs and Debug Info
- Dependency FAQ
- Working with discuss.istio.io
- Developing with and hosting upon OpenShift
- Adapter Dev Guide
- Adapter Walkthrough
- Attribute Generating Adapter Walkthrough
- Route Directive Adapter Development Guide
- Out of Tree Adapter Walkthrough
- Running a Local Instance
- Template Dev Guide
- Using a Custom Adapter
- Publishing Adapters and Templates to istio.io
- Enabling Envoy Authorization Service and gRPC Access Log Service With Mixer