-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix!(codecs): Use '\0' delimiter as default stream decode framer (#20778
) * fix(gelf): Use null delimiter as default streaming framer * fix(gelf): compilation issues * test(gelf): Improve gelf decoder test * test(decoder): Fix gelf stream decoding test * test(gelf): Improve gelf decoder test * test(gelf): Fix test fail * doc: add changelog * test: simplify gelf stream default framing test * doc: rewrite changelog * style: cargo fmt * docs: update changelog with PR suggestion Co-authored-by: Jesse Szwedko <[email protected]> * docs: change changelog example to yaml * Update 20768-default_gelf_stream_framing.breaking.md --------- Co-authored-by: Jesse Szwedko <[email protected]>
- Loading branch information
1 parent
2c75df4
commit 21548fc
Showing
4 changed files
with
70 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
Now the GELF codec with stream-based sources uses null byte (`\0`) by default as messages delimiter instead of newline (`\n`) character. This better matches GELF server behavior. | ||
|
||
### Configuration changes | ||
|
||
In order to maintain the previous behavior, you must set the `framing.method` option to the `character_delimited` method and the `framing.character_delimited.delimiter` option to `\n` when using GELF codec with stream-based sources. | ||
|
||
### Example configuration change for socket source | ||
|
||
#### Previous | ||
|
||
```yaml | ||
sources: | ||
my_source_id: | ||
type: "socket" | ||
address: "0.0.0.0:9000" | ||
mode: "tcp" | ||
decoding: | ||
codec: "gelf" | ||
``` | ||
#### Current | ||
```yaml | ||
sources: | ||
my_source_id: | ||
type: "socket" | ||
address: "0.0.0.0:9000" | ||
mode: "tcp" | ||
decoding: | ||
codec: "gelf" | ||
framing: | ||
method: "character_delimited" | ||
character_delimited: | ||
delimiter: "\n" | ||
``` | ||
authors: jorgehermo9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters