12.4.3. OpenShift Logging 데이터 수집
oc adm must-gather
CLI 명령을 사용하여 OpenShift Logging 환경에 대한 정보를 수집할 수 있습니다.
프로세스
must-gather
로 OpenShift Logging 정보를 수집하려면 다음을 수행하십시오.
-
must-gather
정보를 저장하려는 디렉터리로 이동합니다. OpenShift Logging 이미지에 대해
oc adm must-gather
명령을 실행합니다.$ oc adm must-gather --image=$(oc -n openshift-logging get deployment.apps/cluster-logging-operator -o jsonpath='{.spec.template.spec.containers[?(@.name == "cluster-logging-operator")].image}')
must-gather
툴에서 현재 디렉터리 내에must-gather.local
로 시작하는 새 디렉터리를 만듭니다. 예:must-gather.local.4157245944708210408
.방금 생성한
must-gather
디렉터리에서 압축 파일을 만듭니다. 예를 들어 Linux 운영 체제를 사용하는 컴퓨터에서 다음 명령을 실행합니다.$ tar -cvaf must-gather.tar.gz must-gather.local.4157245944708210408
- Red Hat Customer Portal에서 해당 지원 사례에 압축 파일을 첨부합니다.