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.

Event / hook where I can check for log event size before it gets logged #112

Closed
@rohits-dev

Description

@rohits-dev

I am using serilog, and facing issue with ElasticsearchSink when a batch exceeds 10MB payload, I am on AWS ES service which restricts more than 10MB log. Is there any hook where I can check if a particular log entry is more than x bytes? I would like to skip such log events and replace it with a smaller log entry to say too big log message was generated and truncated.

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