Skip to content

LocalSyslogAppender loses records over 212960 bytes silently #348

Closed

Description

@FreeAndNil

Summary

LocalSyslogAppender passes records of any length to syslog(3). glibc drops a datagram larger
than the socket send buffer minus 32 bytes (212960 with the default net.core.wmem_default) and
reports nothing, so the record is gone without a trace.

Proposed Fix

A new MaxRecordSize property in UTF-8 bytes, default 204800, at least 512. A longer record is cut
without splitting a character, marked ...[truncated] and reported through the ErrorHandler. In
Split mode the limit applies per line. The byte cut of UdpAppender moves to a shared helper.

Fixed in #355 (2622b46, 0bea787), released in 3.6.0. Found by the Anthropic OSS Scanner as ANT-2026-G1W5JHYT.

Activity

  1. added 3 commits that reference this issue on Nov 9, 2026
  2. added this to the 3.6.0 milestone on Nov 9, 2026
  3. changed the title [-]ANT-2026-G1W5JHYT[/-] [+]LocalSyslogAppender loses records over 212960 bytes silently[/+] on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions