Hello.
I've written several small Java TCs (DB test, HTTP test, etc), in plain Java (no framework below), everything seems fine, as far as configuration is concerned (APM confirms every item, including successful data transmission by the agent). However all I get in the server log is the following:
2018-10-19T16:45:19.797+0300 INFO [request] beater/handlers.go:282 handled request {"request_id": "e733913f-46fb-44cb-bdc1-79403b4e7900", "method": "GET", "URL": "/healthcheck", "content_length": 0, "remote_address": "192.168.56.101", "user-agent": "co/elastic/apm/shaded/okhttp/3.9.1", "response_code": 200}
And no data displaying in Kibana.
Can you share a thought, especially regarding the "content_length":0 thing ?
I've also activated DEBUG, below a sample output from one of the runs:
2018-10-19 16:19:37.222 [main] INFO co.elastic.apm.configuration.StartupInfo - Starting Elastic APM 0.7.0 as getpost on Java 1.8.0_141 (Oracle Corporation) Linux 4.1.12-112.14.2.el7uek.x86_64
2018-10-19 16:19:37.222 [main] DEBUG co.elastic.apm.configuration.StartupInfo - server_urls: 'http://elk-node:8200' (source: Java System Properties)
2018-10-19 16:19:37.223 [main] DEBUG co.elastic.apm.configuration.StartupInfo - application_packages: '-1' (source: Java System Properties)
2018-10-19 16:19:37.223 [main] DEBUG co.elastic.apm.configuration.StartupInfo - log_level: 'TRACE' (source: Java System Properties)
...
2018-10-19 16:19:37.274 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.plugin.api.ElasticApmApiInstrumentation$CaptureExceptionInstrumentation
2018-10-19 16:19:37.274 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.plugin.api.TransactionInstrumentation$SetNameInstrumentation
2018-10-19 16:19:37.275 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.plugin.api.TransactionInstrumentation$SetTypeInstrumentation
2018-10-19 16:19:37.275 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.plugin.api.TransactionInstrumentation$AddTagInstrumentation
2018-10-19 16:19:37.276 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.plugin.api.TransactionInstrumentation$SetUserInstrumentation
...
- Applying advice co.elastic.apm.plugin.api.SpanInstrumentation$DoCreateSpanInstrumentation
2018-10-19 16:19:37.280 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.plugin.api.SpanInstrumentation$EndInstrumentation
2018-10-19 16:19:37.280 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.plugin.api.SpanInstrumentation$CaptureExceptionInstrumentation
2018-10-19 16:19:37.280 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.plugin.api.SpanInstrumentation$GetIdInstrumentation
2018-10-19 16:19:37.281 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.plugin.api.SpanInstrumentation$AddTagInstrumentation
2018-10-19 16:19:37.281 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.plugin.api.CaptureExceptionInstrumentation
2018-10-19 16:19:37.282 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.jdbc.ConnectionInstrumentation
2018-10-19 16:19:37.282 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.jdbc.StatementInstrumentation
...
2018-10-19 16:19:37.286 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.opentracing.impl.ApmSpanInstrumentation$BaggageItemsInstrumentation
2018-10-19 16:19:37.287 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.opentracing.impl.ApmSpanBuilderInstrumentation$CreateSpanInstrumentation
...
2018-10-19 16:19:37.298 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.servlet.AsyncInstrumentation
2018-10-19 16:19:37.299 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.resttemplate.SpringRestTemplateInstrumentation
2018-10-19 16:19:37.299 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applying advice co.elastic.apm.spring.webmvc.SpringTransactionNameInstrumentation
2018-10-19 16:19:37.300 [main] DEBUG co.elastic.apm.bci.ElasticApmAgent - Applied 37 advices
JSON String Result { "userId": 4, "id": 32, "title": "doloremque illum aliquid sunt", "body": "deserunt eos nobis asperiores et hic\nest debitis repellat molestiae optio\nnihil ratione ut eos beatae quibusdam distinctio maiores\nearum voluptates et aut adipisci ea maiores voluptas maxime"}
{
"userId": 101,
"id": 101,
"title": "Test Title",
"body": "Test Body"
}
2018-10-19 16:19:38.218 [apm-reporter] TRACE co.elastic.apm.report.IntakeV1ReportingEventHandler - Receiving FLUSH event (sequence 0)
2018-10-19 16:19:38.218 [apm-reporter] TRACE co.elastic.apm.report.IntakeV1ReportingEventHandler - Finished processing FLUSH event (sequence 0)
POST Response Code : 201
POST Response Message : Created
{ "userId": 101, "id": 101, "title": "Test Title", "body": "Test Body"}
Thx really.
Mihai