Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

log.level isn't mapped or populated for error messages #13956

Open
marclop opened this issue Aug 29, 2024 · 7 comments
Open

log.level isn't mapped or populated for error messages #13956

marclop opened this issue Aug 29, 2024 · 7 comments
Assignees
Labels

Comments

@marclop
Copy link
Contributor

marclop commented Aug 29, 2024

APM Server version (apm-server version): All

Description of the problem including expected versus actual behavior:

APM Errors don't currently include log.level when documents are indexed in Elasticsearch. This makes these documents awkward to consume and filter as a user since the logs cannot be included in searches where log.level:error.

Steps to reproduce:

  1. Capture an error event in an instrumented APM Application.
  2. Inspect the document and you'll see that log.level is used

Provide logs (if relevant):

@marclop marclop added the bug label Aug 29, 2024
@rubvs
Copy link

rubvs commented Aug 29, 2024

Will is be possible to provide some screenshots please? I don't see any logs provided in the description.

marclop added a commit to marclop/elasticsearch that referenced this issue Sep 3, 2024
This commit sets `log.level: "error"` as a `constant_keyword` for all
apm error logs.

Part of elastic/apm-server#13956

Signed-off-by: Marc Lopez Rubio <[email protected]>
@marclop marclop self-assigned this Sep 3, 2024
@smith
Copy link

smith commented Sep 3, 2024

@rubvs Here's some APM error logs:

Image

They contain error.log.level and error.log.message instead of the ECS log.level and message.

@shevkaboss
Copy link

Having the same issue!
Waiting for reply, for now my workaround is to have ingest pipeline for that, which also works a bit weird (not adding log level on Stream view).

Waiting for reply

@rubvs
Copy link

rubvs commented Sep 5, 2024

@shevkaboss and @smith we are already working on a fix and intend to include it in an upcoming minor version release.

@shevkaboss
Copy link

shevkaboss commented Sep 5, 2024

@rubvs thanks for quick reply.

Just wondering, is that possible also to show error level on Stream view?
For traces, system Message field will be like "[dataSet.platform] [log.level] message". I would love to see that as "[error] message".

@smith
Copy link

smith commented Sep 6, 2024

@shevkaboss we're going to be making some updates to the log stream view soon that might help you with this. Can you set Logs Explorer up to show this how you want?

@simitt
Copy link
Contributor

simitt commented Oct 18, 2024

@marclop are you actively working on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants