Skip to content

Commit

Permalink
[receiver/syslog] fixed syslog octet frame parsing (#23645)
Browse files Browse the repository at this point in the history
Parse multiple syslog events from a single packet when octet framing is enabled.
  • Loading branch information
timannguyen authored Jun 27, 2023
1 parent 7a1061d commit d200d2e
Show file tree
Hide file tree
Showing 9 changed files with 679 additions and 397 deletions.
20 changes: 20 additions & 0 deletions .chloggen/issue-23577.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Use this changelog template to create an entry for release notes.
# If your change doesn't affect end users, such as a test fix or a tooling change,
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label.

# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
change_type: bug_fix

# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver)
component: pkg/stanza

# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: adding octet counting event breaking for syslog parser

# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
issues: [23577]

# (Optional) One or more lines of additional information to render under the primary note.
# These lines will be padded with 2 spaces and then inserted directly into the document.
# Use pipe (|) for multiline entries.
subtext:
1 change: 0 additions & 1 deletion pkg/stanza/operator/helper/multiline.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ func (c MultilineConfig) getSplitFunc(enc encoding.Encoding, flushAtEOF bool, fo
return SplitNone(maxLogSize), nil
case endPattern == "" && startPattern == "":
splitFunc, err = NewNewlineSplitFunc(enc, flushAtEOF, getTrimFunc(preserveLeadingWhitespaces, preserveTrailingWhitespaces))

if err != nil {
return nil, err
}
Expand Down
Loading

0 comments on commit d200d2e

Please sign in to comment.