-
Notifications
You must be signed in to change notification settings - Fork 127
Add option to exclude lines from sample log files in pipeline tests #380
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
Conversation
💔 Build Failed
Expand to view the summary
Build stats
Trends 🧪Steps errors
Expand to view the steps failures
|
```yml | ||
multiline: | ||
first_line_pattern: "^(?:[0-9]{1,3}\\.){3}[0-9]{1,3}" | ||
exclude_lines: |
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.
I think you should prepare a PR for the package-spec first.
The `multiline` section ([raw files](#raw-files) only) configures the log file reader to correctly detect multiline log entries using the `first_line_pattern`. Use this property if your logs may be split into multiple lines, e.g. Java stack traces. | ||
|
||
The `exclude_lines` sections allows to filter out lines from the sample log files. If `multiline` is used, pattern is checked after merging lines. |
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.
Regarding the elastic/integrations#1145:
I'm wondering if it's possible to remove lines starting with #
with ingest pipeline (during processing, just skip them).
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.
Good idea, I will try that!
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.
It seems that something like #384 will be needed, otherwise errors like this happen:
ERROR: verifying test result failed: comparing test results failed: can't adjust test results: can't unmarshal event: unexpected end of JSON input
Not needed by now, lines can be excluded in the pipeline. |
Oh, I closed this thinking that it was #380 facepalm reopening, this is needed for elastic/integrations#1145. |
Pinging @elastic/integrations (Team:Integrations) |
No, this is not the PR I wanted to reopen 🤦 |
Needed for mysql tests elastic/integrations#1145