Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Obey Syslog size limits #9

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Commits on Dec 19, 2014

  1. Ensure default tag is within size limits

    RFC 3164 section 4.1.3 specifies that the tag MUST NOT exceed 32
    characters.  This is enforced by
    https://github.com/eric/syslog_protocol/blob/001000ffe27a4557c3ec312b9c3c50385e6a923b/lib/syslog_protocol/packet.rb#L48-L50
    
    Ensure that the default tag generated from the program name and PID is
    within these bounds.
    jscheid committed Dec 19, 2014
    Configuration menu
    Copy the full SHA
    b9ab831 View commit details
    Browse the repository at this point in the history
  2. Ensure log messages aren't truncated

    RFC 3164 section 4.1 (also 4.3.2 and 6.1) specifies that the packet
    length MUST NOT exceed 1024 bytes.  This is enforced by
    https://github.com/eric/syslog_protocol/blob/001000ffe27a4557c3ec312b9c3c50385e6a923b/lib/syslog_protocol/packet.rb#L16-L21
    by truncating the packet to this length (by default).
    
    Ensure that we don't lose parts of long log messages by splitting them
    into chunks accordingly and sending each chunk in an individual packet.
    
    Prefix continuation chunks with a configurable prefix (default: ellipsis
    followed by space) so they can be identified as such more easily.
    
    Also make the maximum packet size configurable; while RFC 3164 specifies
    a maximum packet size of 1024, some implementations (e.g. rsyslog)
    support larger sizes.
    jscheid committed Dec 19, 2014
    Configuration menu
    Copy the full SHA
    cfe35a8 View commit details
    Browse the repository at this point in the history

Commits on Oct 6, 2016

  1. Update test infrastructure

    jscheid committed Oct 6, 2016
    Configuration menu
    Copy the full SHA
    f58c14e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    366dce8 View commit details
    Browse the repository at this point in the history

Commits on Feb 22, 2019

  1. Remove activesupport max version

    Tested to work with activesupport 5.2.2.
    jscheid committed Feb 22, 2019
    Configuration menu
    Copy the full SHA
    9067b4f View commit details
    Browse the repository at this point in the history