-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Support \r as line separator #5500
Labels
Comments
kvch
added a commit
that referenced
this issue
Apr 15, 2019
This PR add a new input configuration option named `line_terminator`: ``` # Characters which separate the lines. Valid values: auto, line_feed, vertical_tab, form_feed, # carriage_return, carriage_return_line_feed, next_line, line_separator, paragraph_separator. #line_terminator: auto ``` The option `auto` tells Filebeat to use our current hybrid new line finder approach. Thus, we can avoid introducing a breaking change. It also contains a minor refactoring in `readfile` package. I have created a new type `Config` which stores the configuration of the readers of the package. This eliminates a long list of parameters in the constructors of `EncodeReader` and `LineReader`. Closes #5500
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Filebeat looks for \n or \r\n to split the lines (LF and CR+LF)
Ability to specify newline separator (similar to logstash file input separator) or native support for following separators (extract from https://en.wikipedia.org/wiki/Newline):
The text was updated successfully, but these errors were encountered: