Skip to content
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

Feature/multiline logs #35

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

norvil-khee
Copy link

In order to check e.g. DB2 log files, we required check_logfiles to check for patterns in log-messages which span multiple lines.

The changes in this pull request introduce two options to check_logfiles searches:
multiline: if this is on, scanning of a log file will change so that multiple lines are read before the rest of the scan logic is executed. Lines read are identified by a pattern which must be given in the multilinestartpattern options, described below.
multilinestartpattern: this is a pattern, identifying how a log line starts in multi-line logs. In a DB2 diag-log file this would always be a date/time combination. The scan method then takes the first line which matches this pattern and concatenates each following line as long as it does NOT match this pattern.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant