Kibana version:
7.12
Elasticsearch version:
7.12
APM Server version:
7.12
APM Agent language and version:
1.21.0
Browser version:
Chrome 86
Original install method (e.g. download page, yum, deb, from source, etc.) and version:
From Source
Fresh install or upgraded from other version?
Fresh Install
Is there anything special in your setup? For example, are you using the Logstash or Kafka outputs? Are you using a load balancer in front of the APM Servers? Have you changed index pattern, generated custom templates, changed agent configuration etc.
No
Description of the problem including expected versus actual behavior. Please include screenshots (if relevant):
I need to attach the agent to jenkins,setup i follow is automatic setup with java agent
Steps to reproduce:
1.In apmagents directory -> apm-agent-attach-standalone.jar and elasticapm.properties
2.
java -jar apm-agent-attach-standalone.jar --include '.jenkins.'
java -jar apm-agent-attach-standalone.jar --include '.*jenkins.*' -- config config_file=elasticapm.properties
java -jar apm-agent-attach-standalone.jar --include '.*jenkins.*' --config enabled=false recording=false log_level=DEBUG
- Agent is getting attached to the app but configuration options are not working
Errors in browser console (if relevant):
No error
Provide logs and/or server output (if relevant):
Response:
2021-04-12 10:16:10.270 INFO Attaching the Elastic APM agent to 1201 /usr/share/jenkins/jenkins.war -Djava.awt.headless=true with arguments {recording=false,enabled=false}
2021-04-12 10:16:10.718 INFO Done
Log file:
2021-04-12 10:27:11,244 [elastic-apm-server-reporter] ERROR co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Error trying to connect to APM Server. Some details about SSL configurations corresponding the current connection are logged at INFO level.
2021-04-12 10:27:11,244 [elastic-apm-server-reporter] ERROR co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Failed to handle event of type JSON_WRITER with this error: Connection refused (Connection refused)
2021-04-12 10:27:11,245 [elastic-apm-server-reporter] INFO co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Backing off for 36 seconds (+/-10%)
2021-04-12 10:27:24,341 [elastic-apm-remote-config-poller] ERROR co.elastic.apm.agent.configuration.ApmServerConfigurationSource - Connection refused (Connection refused)
Issue:
Dynamic Configuration options are not working
Need:
Right Syntax for using
1.elasticapm.properties
2.Separate log file for agent
3.Enable/Disable and Recording
Also provide more details in documentation to use this