Just Published! Threat Report: Exposing Malware in Linux-Based Multi-Cloud Environments | Download Now

Container Essentials: How to Collect Diagnostic Logs

Container Essentials: How to Collect Diagnostic Logs

Environment

  • VMWare Carbon Black Container Essentials: All Versions

Objective

How to collect diagnostics for CB Container Essential resources.

Resolution

  1. SSH into Kubernetes cluster.
  2. Run the following command:
    kubectl logs -n cbcontainers-dataplane -l control-plane=operator --tail=-1 > operator-logs_$(date +%b_%d_%Y_%H_%M_%S.txt)
  3. Run the following which generates logs for each component in the dataplane.
    kubectl logs -l 'app.kubernetes.io/name in (cbcontainers-hardening-enforcer, cbcontainers-hardening-state-reporter, cbcontainers-image-scanning-reporter, cbcontainers-monitor, cbcontainers-node-agent, cbcontainers-runtime-resolver)' --all-containers --prefix
  4. Transfer the operator-logs*.txt file and attach to the support case. If the file is large, use CBVault.

Additional Notes

  • If the namespace changes name the -n value may change
  • If the label on the operator changes the -l value may change

Related Content


Labels (2)
Was this article helpful? Yes No
No ratings
Article Information
Author:
Creation Date:
‎01-06-2021
Views:
382
Contributors