Skip to content

APM Event Intake: All errors are considered exceptions. #13055

Closed
@zikphil

Description

@zikphil

APM Server version: Fleet APM Server 8.13.2

Description of the problem including expected versus actual behavior:
Looking at the documentations online it seems that the intake endpoint of APM-server for type: errors also serves the purpose of logging standard messages. It seems that the condition is wheter there is an exception object in the event vs a log object.

This is further confirmed on Kibana looking at index templates / component templates, there seems to be both:

  • logs-apm.app.*-*
  • logs-apm.error-*

However no matter how I format my error event (https://www.elastic.co/guide/en/observability/8.13/apm-api-error.html) it seems that all my messages (log or exceptions) are ending up in the -apm.error data_stream. I've tried using the elasticapm python package and the rum-js-core package for sending the events.

Is this expected to be a future feature or should this be working today?

Steps to reproduce:

  1. Send an error event on the APM Server Intake Endpoint without including an exception object, only including a log object.
  2. Go in Kibana > APM > ACME Service > Errors
  3. You will see your non-error logs there and if you further inspect the error object, you will see the datatype is logs-apm.error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions