-
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
Init support for filebeat multiline #570
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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 |
---|---|---|
|
@@ -32,11 +32,11 @@ filebeat: | |
|
||
# Exclude lines. A list of regular expressions to match. It drops the lines that are | ||
# matching any regular expression from the list. The include_lines is called before | ||
# exclude_lines. By default, no lines are dropped. | ||
# exclude_lines. By default, no lines are dropped. | ||
# exclude_lines: ["^DBG"] | ||
|
||
# Include lines. A list of regular expressions to match. It exports the lines that are | ||
# matching any regular expression from the list. The include_lines is called before | ||
# matching any regular expression from the list. The include_lines is called before | ||
# exclude_lines. By default, all the lines are exported. | ||
# include_lines: ["^ERR", "^WARN"] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not related, but we should remove here and for exclude_lines the space in front. |
||
|
||
|
@@ -73,6 +73,35 @@ filebeat: | |
# Defines the buffer size every harvester uses when fetching the file | ||
#harvester_buffer_size: 16384 | ||
|
||
# Maximum number of bytes a single log event can have | ||
# All bytes after max_bytes are discarded and not sent. The default is 10MB. | ||
# This is especially useful for multiline log messages which can get large. | ||
#max_bytes: 10485760 | ||
|
||
# Mutiline can be used for log messages spanning multiple lines. This is common | ||
# for Java Stack Traces or C-Line Continuation | ||
#multiline: | ||
|
||
# The regexp Pattern that has to be matched. The example pattern matches all lines starting with [ | ||
#pattern: ^\[ | ||
|
||
# Defines if the pattern set under pattern should be negated or not. Default is false. | ||
#negate: false | ||
|
||
# Match can be set to "after" or "before". It is used to define if lines should be append to a pattern | ||
# that was (not) matched before or after or as long as a pattern is not matched based on negate. | ||
# Note: After is the equivalent to previous and before is the equivalent to to next in Logstash | ||
#match: after | ||
|
||
# The maximum number of lines that are combined to one event. | ||
# In case there are more the max_lines the additional lines are discarded. | ||
# Default is 500 | ||
#max_lines: 500 | ||
|
||
# After the defined timeout, an multiline event is sent even if no new pattern was found to start a new event | ||
# Default is 5s. | ||
#timeout: 5s | ||
|
||
# Setting tail_files to true means filebeat starts readding new files at the end | ||
# instead of the beginning. If this is used in combination with log rotation | ||
# this can mean that the first entries of a new file are skipped. | ||
|
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
match
is required, right?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, match and pattern is required.