Skip to content

Log document id when MapperParsingException occurs #37658

@dr0i

Description

@dr0i

Elasticsearch version: 5.6 6.x

Indexing a document using the java api may result in a MapperParsingException. When bulk-indexing, the problematic field-name is logged by elasticsearch (log-level has to be set to debug), but not the document-id. Indexing millions of documents it's hard to track down which specific document has the trouble. So, it would be nice to also have the document's id to get straight to the source.

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