No service or trace is shown on kibana when using intake api directly

On a osx using docker and the elk version is 7.13.2.

I am posting some stuff to apm server through http://localhost:8200/intake/v2/events and the response status is 202, however, I can't find it nowhere in Kibana. Neither in the service or trace list in APM and neither in the discovery of the apm-* index.

What am I doing wrong? How can I debug it?

Here is the body:

 {"metadata":{"process":{"pid":81772,"title":"/bin/dart","argv":["--enable-asserts"]},"system":{"architecture":"x86_64","detected_hostname":"joe.local","platform":"Darwin"},"service":{"name":"HyperWebinar API","agent":{"name":"GuaraciObserver","version":"0.0.1"},"environment":"development","language":{"name":"Dart","version":"2.10.5 (stable) (Tue Jan 19 13:05:37 2021 +0100) on \"macos_x64\""},"runtime":{"name":"Dart","version":"2.10.5 (stable) (Tue Jan 19 13:05:37 2021 +0100) on \"macos_x64\""}},"labels":{}}}
{"transaction":{"timestamp":1624500828575408,"duration":393,"name":"GraphQL query","type":"http","id":"103-1624500828575","trace_id":"104-1624500828575","parent_id":null,"span_count":{"started":2},"sampled":true,"sample_rate":1}}
{"span":{"start":0,"name":"Login","duration":87,"type":"database","id":"105-1624500828575","trace_id":"104-1624500828575","parent_id":"103-1624500828575"}}
{"span":{"start":3,"name":"Find in the database","duration":12,"type":"database","id":"106-1624500828579","trace_id":"104-1624500828575","parent_id":"105-1624500828575"}}
{"transaction":{"timestamp":1624500828622557,"duration":38,"name":"Saving object","type":"background","id":"107-1624500828622","trace_id":"104-1624500828575","parent_id":"105-1624500828575","span_count":{"started":0},"sampled":true,"sample_rate":1}}
{"span":{"start":87,"name":"GraphQL exec","duration":304,"type":"database","id":"108-1624500828662","trace_id":"104-1624500828575","parent_id":"103-1624500828575"}}
{"span":{"start":24,"name":"Find in the database","duration":15,"type":"database","id":"109-1624500828686","trace_id":"104-1624500828575","parent_id":"108-1624500828662"}}
{"transaction":{"timestamp":1624500828731863,"duration":217,"name":"GraphQL UpdateMutation","type":"background","id":"110-1624500828731","trace_id":"104-1624500828575","parent_id":"108-1624500828662","span_count":{"started":2},"sampled":true,"sample_rate":1}}
{"transaction":{"timestamp":1624500828843591,"duration":8,"name":"Saving object","type":"background","id":"111-1624500828843","trace_id":"104-1624500828575","parent_id":"110-1624500828731","span_count":{"started":0},"sampled":true,"sample_rate":1}}
{"span":{"start":202,"name":"Find in the database","duration":12,"type":"database","id":"112-1624500828933","trace_id":"104-1624500828575","parent_id":"110-1624500828731"}}
{"span":{"start":286,"name":"Find in the database","duration":10,"type":"database","id":"113-1624500828949","trace_id":"104-1624500828575","parent_id":"108-1624500828662"}}

Hi @jodinathan , the payload you shared seems fine, I just sent it to a local APM Server and the service and trace showed up in the UI as expected. Have you checked the APM Server logs for any indicators that it has problems sending the events to Elasticsearch?

yeah, that was the problem.
thanks

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.