Skip to content
This repository was archived by the owner on Jun 1, 2024. It is now read-only.
This repository was archived by the owner on Jun 1, 2024. It is now read-only.

log elastic mapping errors as errors in elasticsearch #203

Closed
@pierresetteskog

Description

@pierresetteskog

A few questions before you begin:

Is this an issue related to the Serilog core project or one of the sinks or
community projects.
This issue list is intended for Serilog Elasticsearch Sink issues. If this issue relates to another sink or to the code project,
please log on the related repository. Please use Gitter chat and Stack Overflow for discussions and questons.

Does this issue relate to a new feature or an existing bug?

  • Bug
  • New Feature

What version of Serilog.Sinks.Elasticsearch is affected? Please list the related NuGet package.

What is the target framework and operating system? See target frameworks & net standard matrix.

  • netCore 2.0
  • netCore 1.0
  • 4.7
  • 4.6.x
  • 4.5.x

Please describe the current behavior?
Its easy to by accident log same field with different datatypes and get errors like:

Received failed ElasticSearch shipping result 400: {"type":"mapper_parsing_exception","reason":"failed to parse field

And its easy to miss errors in selflog
Please describe the expected behavior?
It would be nice if all not connection error problem was logged as errors in elasticsearch as string.
Or at least the excption is also sent to Action<LogEvent,Exception> ElasticsearchConfiguration.FailureCallback

If the current behavior is a bug, please provide the steps to reproduce the issue and if possible a minimal demo of the problem

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