ASM - How can we obtain the logs from the Jmeter agents in the OPMS?
search cancel

ASM - How can we obtain the logs from the Jmeter agents in the OPMS?

book

Article ID: 207068

calendar_today

Updated On:

Products

CA App Synthetic Monitor

Issue/Introduction

How can the logs from the Jmeter agents for troubleshooting issues?

Environment

Any ASM release

Resolution

1.- Make sure the user to run commands in the OPMS have the correct permissions

2.- Run below commands on the OPMS:

cd /tmp ;
mkdir jlogs ;
cd jlogs ;
for i in 1 2 3 4 5 6 7 8; do echo $i ; docker logs asm_jmeter4-agent_$i 2>&1 | gzip > jmeter4_logs.$i.gz ; done

 

They will call docker logs for each of the Jmeter agent instances and will zip the output (eg: jmeter4_logs.x.gz).