When the agent starts up, you should see logs similar to these:
2020-04-28 02:55:43.487 [main] DEBUG co.elastic.apm.agent.configuration.StartupInfo - environment: 'spot-trading' (source: Java System Properties)
2020-04-28 02:55:43.487 [main] DEBUG co.elastic.apm.agent.configuration.StartupInfo - secret_token: 'XXXX' (source: Java System Properties)
2020-04-28 02:55:43.487 [main] DEBUG co.elastic.apm.agent.configuration.StartupInfo - server_urls: 'http://log.bitmartlocal.com:8200' (source: Java System Properties)
2020-04-28 02:55:43.487 [main] WARN co.elastic.apm.agent.configuration.StartupInfo - Detected usage of an old configuration key: 'server_url'. Please use 'server_urls' instead.
2020-04-28 02:55:43.487 [main] DEBUG co.elastic.apm.agent.configuration.StartupInfo - application_packages: 'org.example' (source: Java System Properties)
2020-04-28 02:55:43.487 [main] DEBUG co.elastic.apm.agent.configuration.StartupInfo - log_level: 'TRACE' (source: Java System Properties)
2020-04-28 02:55:43.488 [elastic-apm-remote-config-poller] TRACE co.elastic.apm.agent.report.serialize.DslJsonSerializer - {"service":{"name":"quotation-query-v1-dev","environment":"spot-trading","agent":{"name":"java","ephemeral_id":"1dcec204-faca-46a8-943c-00d4d69c309e","version":"1.15.0"},"language":{"name":"Java","version":"1.8.0_212"},"runtime":{"name":"Java","version":"1.8.0_212"},"version":null},"process":{"pid":1,"title":"/usr/local/openjdk-8/jre/bin/java"},"system":{"container":{"id":"04c57d3f57c544bc1eef305b05bf6e9c296abe30dcea95b08d8c55d81a6c8b02"},"kubernetes":{"pod":{"name":"quotation-query-v1-dev-57cbdf78b6-5rcgd","uid":"b3414db2-88fb-11ea-a248-005056a62017"},"namespace":null},"architecture":"amd64","hostname":"quotation-query-v1-dev-57cbdf78b6-5rcgd","platform":"Linux"}}
Make sure to execute some requests to your application before posting your log files. Each request should at least add some lines similar to these in the logs:
2020-04-28 03:05:14.076 INFO 1 --- [ault-executor-2] c.b.q.a.g.i.QuotationQueryApiGrpcImpl : uuid=[ec979836-5f4d-408b-8048-bfadd5c0b0be]-接收到queryDepth grpc查询请求:[uuid: "ec979836-5f4d-408b-8048-bfadd5c0b0be"
trade_mapping_id: 154
precision: 6
],89ms
2020-04-28 03:05:16.498 [elastic-apm-circuit-breaker] TRACE co.elastic.apm.agent.impl.circuitbreaker.CircuitBreaker - Scheduling next stress monitor polling in 5000s
2020-04-28 03:05:20.496 [elastic-apm-request-timeout-timer] DEBUG co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Request flush because the request timeout occurred
2020-04-28 03:05:20.499 [elastic-apm-server-reporter] DEBUG co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Receiving FLUSH event (sequence 37)
2020-04-28 03:05:20.500 [elastic-apm-server-reporter] TRACE co.elastic.apm.agent.report.serialize.DslJsonSerializer - {"metadata":{"service":{"name":"quotation-query-v1-dev","environment":"spot-trading","agent":{"name":"java","ephemeral_id":"1dcec204-faca-46a8-943c-00d4d69c309e","version":"1.15.0"},"language":{"name":"Java","version":"1.8.0_212"},"runtime":{"name":"Java","version":"1.8.0_212"},"version":null},"process":{"pid":1,"title":"/usr/local/openjdk-8/jre/bin/java"},"system":{"container":{"id":"04c57d3f57c544bc1eef305b05bf6e9c296abe30dcea95b08d8c55d81a6c8b02"},"kubernetes":{"pod":{"name":"quotation-query-v1-dev-57cbdf78b6-5rcgd","uid":"b3414db2-88fb-11ea-a248-005056a62017"},"namespace":null},"architecture":"amd64","hostname":"quotation-query-v1-dev-57cbdf78b6-5rcgd","platform":"Linux"}}}
{"metricset":{"timestamp":1588043110495000,"samples":{"system.process.cpu.total.norm.pct":{"value":0.002536517099623896},"jvm.memory.heap.used":{"value":127095792.0},"jvm.memory.non_heap.used":{"value":96837840.0},"jvm.memory.heap.max":{"value":518979584.0},"jvm.gc.alloc":{"value":151658936.0},"jvm.memory.non_heap.committed":{"value":100474880.0},"system.cpu.total.norm.pct":{"value":0.3741800052479664},"system.process.memory.size":{"value":4744876032.0},"jvm.memory.heap.committed":{"value":518979584.0},"jvm.memory.non_heap.max":{"value":-1.0},"system.memory.actual.free":{"value":10640715776.0},"system.memory.total":{"value":33566777344.0},"jvm.thread.count":{"value":29.0}}}}
{"metricset":{"timestamp":1588043110495000,"tags":{"name":"MarkSweepCompact"},"samples":{"jvm.gc.time":{"value":5324.0},"jvm.gc.count":{"value":3.0}}}}
{"metricset":{"timestamp":1588043110495000,"tags":{"name":"Copy"},"samples":{"jvm.gc.time":{"value":6835.0},"jvm.gc.count":{"value":13.0}}}}
2020-04-28 03:05:20.500 [elastic-apm-server-reporter] DEBUG co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Flushing 1664 uncompressed 731 compressed bytes
2020-04-28 03:05:21.499 [elastic-apm-circuit-breaker] TRACE co.elastic.apm.agent.impl.circuitbreaker.CircuitBreaker - Scheduling next stress monitor polling in 5000s
2020-04-28 03:05:26.499 [elastic-apm-circuit-breaker] TRACE co.elastic.apm.agent.impl.circuitbreaker.CircuitBreaker - Scheduling next stress monitor polling in 5000s
2020-04-28 03:05:31.500 [elastic-apm-circuit-breaker] TRACE co.elastic.apm.agent.impl.circuitbreaker.CircuitBreaker - Scheduling next stress monitor polling in 5000s
2020-04-28 03:05:33.288 [elastic-apm-configuration-reloader] DEBUG co.elastic.apm.agent.impl.ElasticApmTracerBuilder - Beginning scheduled configuration reload (interval is 30 sec)...
2020-04-28 03:05:33.289 [elastic-apm-configuration-reloader] DEBUG co.elastic.apm.agent.impl.ElasticApmTracerBuilder - Finished scheduled configuration reload
2020-04-28 03:05:36.500 [elastic-apm-circuit-breaker] TRACE co.elastic.apm.agent.impl.circuitbreaker.CircuitBreaker - Scheduling next stress monitor polling in 5000s
2020-04-28 03:05:40.478 [elastic-apm-server-reporter] DEBUG co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Receiving METRICS event (sequence 38)
2020-04-28 03:05:40.479 [elastic-apm-server-reporter] DEBUG co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Starting new request to http://log.bitmartlocal.com:8200/intake/v2/events
2020-04-28 03:05:40.481 [elastic-apm-server-reporter] DEBUG co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Scheduling request timeout in 10s
2020-04-28 03:05:41.500 [elastic-apm-circuit-breaker] TRACE co.elastic.apm.agent.impl.circuitbreaker.CircuitBreaker - Scheduling next stress monitor polling in 5000s
2020-04-28 03:05:43.781 [elastic-apm-remote-config-poller] DEBUG co.elastic.apm.agent.configuration.ApmServerConfigurationSource - Reloading configuration from APM Server http://log.bitmartlocal.com:8200/config/v1/agents
2020-04-28 03:05:43.785 [elastic-apm-remote-config-poller] TRACE co.elastic.apm.agent.report.serialize.DslJsonSerializer - {"service":{"name":"quotation-query-v1-dev","environment":"spot-trading","agent":{"name":"java","ephemeral_id":"1dcec204-faca-46a8-943c-00d4d69c309e","version":"1.15.0"},"language":{"name":"Java","version":"1.8.0_212"},"runtime":{"name":"Java","version":"1.8.0_212"},"version":null},"process":{"pid":1,"title":"/usr/local/openjdk-8/jre/bin/java"},"system":{"container":{"id":"04c57d3f57c544bc1eef305b05bf6e9c296abe30dcea95b08d8c55d81a6c8b02"},"kubernetes":{"pod":{"name":"quotation-query-v1-dev-57cbdf78b6-5rcgd","uid":"b3414db2-88fb-11ea-a248-005056a62017"},"namespace":null},"architecture":"amd64","hostname":"quotation-query-v1-dev-57cbdf78b6-5rcgd","platform":"Linux"}}
2020-04-28 03:05:43.786 [elastic-apm-remote-config-poller] DEBUG co.elastic.apm.agent.configuration.ApmServerConfigurationSource - Central configuration is disabled. Set kibana.enabled: true in your APM Server configuration.
2020-04-28 03:05:43.786 [elastic-apm-remote-config-poller] DEBUG co.elastic.apm.agent.configuration.ApmServerConfigurationSource - Scheduling next remote configuration reload in 300s
After that, you should see logs indicating that the agent has successfully sent data to the APM server:
2020-04-28 03:06:16.505 [elastic-apm-circuit-breaker] TRACE co.elastic.apm.agent.impl.circuitbreaker.CircuitBreaker - Scheduling next stress monitor polling in 5000s
2020-04-28 03:06:20.486 [elastic-apm-request-timeout-timer] DEBUG co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Request flush because the request timeout occurred
2020-04-28 03:06:20.492 [elastic-apm-server-reporter] DEBUG co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Receiving FLUSH event (sequence 41)
2020-04-28 03:06:20.492 [elastic-apm-server-reporter] TRACE co.elastic.apm.agent.report.serialize.DslJsonSerializer - {"metadata":{"service":{"name":"quotation-query-v1-dev","environment":"spot-trading","agent":{"name":"java","ephemeral_id":"1dcec204-faca-46a8-943c-00d4d69c309e","version":"1.15.0"},"language":{"name":"Java","version":"1.8.0_212"},"runtime":{"name":"Java","version":"1.8.0_212"},"version":null},"process":{"pid":1,"title":"/usr/local/openjdk-8/jre/bin/java"},"system":{"container":{"id":"04c57d3f57c544bc1eef305b05bf6e9c296abe30dcea95b08d8c55d81a6c8b02"},"kubernetes":{"pod":{"name":"quotation-query-v1-dev-57cbdf78b6-5rcgd","uid":"b3414db2-88fb-11ea-a248-005056a62017"},"namespace":null},"architecture":"amd64","hostname":"quotation-query-v1-dev-57cbdf78b6-5rcgd","platform":"Linux"}}}
{"metricset":{"timestamp":1588043170486000,"samples":{"system.process.cpu.total.norm.pct":{"value":0.002314410480349345},"jvm.memory.heap.used":{"value":130012928.0},"jvm.memory.non_heap.used":{"value":97333504.0},"jvm.memory.heap.max":{"value":518979584.0},"jvm.gc.alloc":{"value":144801400.0},"jvm.memory.non_heap.committed":{"value":101064704.0},"system.cpu.total.norm.pct":{"value":0.36908296943231444},"system.process.memory.size":{"value":4744876032.0},"jvm.memory.heap.committed":{"value":518979584.0},"jvm.memory.non_heap.max":{"value":-1.0},"system.memory.actual.free":{"value":11031728128.0},"system.memory.total":{"value":33566777344.0},"jvm.thread.count":{"value":28.0}}}}
{"metricset":{"timestamp":1588043170486000,"tags":{"name":"MarkSweepCompact"},"samples":{"jvm.gc.time":{"value":5324.0},"jvm.gc.count":{"value":3.0}}}}
{"metricset":{"timestamp":1588043170486000,"tags":{"name":"Copy"},"samples":{"jvm.gc.time":{"value":6835.0},"jvm.gc.count":{"value":13.0}}}}
2020-04-28 03:06:20.493 [elastic-apm-server-reporter] DEBUG co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Flushing 1665 uncompressed 727 compressed bytes
2020-04-28 03:06:21.506 [elastic-apm-circuit-breaker] TRACE co.elastic.apm.agent.impl.circuitbreaker.CircuitBreaker - Scheduling next stress monitor polling in 5000s
2020-04-28 03:06:26.507 [elastic-apm-circuit-breaker] TRACE co.elastic.apm.agent.impl.circuitbreaker.CircuitBreaker - Scheduling next stress monitor polling in 5000s
2020-04-28 03:06:31.507 [elastic-apm-circuit-breaker] TRACE co.elastic.apm.agent.impl.circuitbreaker.CircuitBreaker - Scheduling next stress monitor polling in 5000s
2020-04-28 03:06:33.288 [elastic-apm-configuration-reloader] DEBUG co.elastic.apm.agent.impl.ElasticApmTracerBuilder - Beginning scheduled configuration reload (interval is 30 sec)...
2020-04-28 03:06:33.289 [elastic-apm-configuration-reloader] DEBUG co.elastic.apm.agent.impl.ElasticApmTracerBuilder - Finished scheduled configuration reload
2020-04-28 03:06:36.508 [elastic-apm-circuit-breaker] TRACE co.elastic.apm.agent.impl.circuitbreaker.CircuitBreaker - Scheduling next stress monitor polling in 5000s
2020-04-28 03:06:40.484 [elastic-apm-server-reporter] DEBUG co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Receiving METRICS event (sequence 42)