Skip to content

Conversation

@DaveCTurner
Copy link
Contributor

Exceptions while parsing documents are returned to the client, which
makes sense because the client has the most information about the
context of the request and is best-placed to deal with the issue. Today
we also log some of these exceptions in the server logs at INFO but
this makes much less sense. Worse, these exceptions sometimes report
fields from the document which might even include PII, and we shouldn't
be recording PII in the server logs by default.

This commit removes the unwanted INFO-level logging.

Exceptions while parsing documents are returned to the client, which
makes sense because the client has the most information about the
context of the request and is best-placed to deal with the issue. Today
we also log some of these exceptions in the server logs at `INFO` but
this makes much less sense. Worse, these exceptions sometimes report
fields from the document which might even include PII, and we shouldn't
be recording PII in the server logs by default.

This commit removes the unwanted `INFO`-level logging.
@DaveCTurner DaveCTurner added >bug :Distributed/CRUD A catch all label for issues around indexing, updating and getting a doc by id. Not search. auto-backport Automatically create backport pull requests when merged branch:9.2 branch:9.1 branch:8.19 v9.4.0 branch:9.3 labels Jan 30, 2026
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

Copy link
Member

@davidkyle davidkyle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LTGM thanks

@DaveCTurner
Copy link
Contributor Author

@kkrik-es it looks like you added this logging in #117828 - there's no context on that issue explaining why, but see the OP for why I think this is a bad idea. It's also messing with our alerts because the doc contents sometimes contains phrases like OutOfMemoryError.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged >bug :Distributed/CRUD A catch all label for issues around indexing, updating and getting a doc by id. Not search. Team:Distributed Meta label for distributed team. v8.19.12 v9.1.11 v9.2.6 v9.3.1 v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants