Dx-APM On-Prem - How to download logs from the Enterprise Manager

book

Article ID: 223369

calendar_today

Updated On:

Products

CA Application Performance Management (APM / Wily / Introscope)

Issue/Introduction

Here are the steps to download the IntroscopeEnterpriseManager.log from the Kubernetes pod to the root of the hosting sever.

 

Environment

Release : 20.2

Component : APPLICATION PERFORMANCE MANAGEMENT

Resolution

in the examples below dxi is my namespace

1. obtain the EM pod name

kubectl get pods |grep apm-em
kubectl get pods -ndxi |grep apm-em


2. connect to apm-em pod
kubectl exec -it apm-em-10-567230-001-76d979bbbb-frm87 -ndxi bash

3. change to the logs forlder
cd logs

4. List files in folder
ll

5. exit from pod
exit

6. copy log file from pod to local system for example to /
Example: kubectl cp dxi/<postgresql-pod>:/logs/IntroscopeEnterpriseManager.log /

kubectl cp dxi/apm-em-10-567230-001-76d979bbbb-frm87:logs/IntroscopeEnterpriseManager.log /


replay:
[[email protected] /]# kubectl get pods -ndxi |grep apm-em
apm-em-10-567230-001-76d979bbbb-frm87                  1/1       Running                 0          5d
apm-em-13-297377-001-7dfb79c65d-kbmn8                  1/1       Running                 0          5d
[[email protected] /]# kubectl exec -it apm-em-10-567230-001-76d979bbbb-frm87 -ndxi bash
[[email protected] apm]$ cd logs
[[email protected] logs]$ ll
total 1432
-rw-r--r--. 1 default default 1397922 Sep  7 20:15 IntroscopeEnterpriseManager.log
[[email protected] logs]$ exit
exit
[[email protected] /]# kubectl cp dxi/apm-em-10-567230-001-76d979bbbb-frm87:logs/IntroscopeEnterpriseManager.log /
[[email protected] /]# ll
total 1416
-rw-r--r--.   1 root root 1398231 Sep  7 20:15 IntroscopeEnterpriseManager.log