Skip to content

Conversation

@sigv
Copy link

@sigv sigv commented Sep 17, 2019

The provided example includes a message using the default log format. This includes a PID next to the process name such as haproxy[1234]: which does not currently get properly parsed. Additionally, some extractors already work for messages with prefixes (such as datetime being added there) while others do not, therefore this PR adds consistency by dropping the ^ line-start requirement.

Field 1 on the default HAProxy log format is set as
`process_name '[' pid ']:'` which is also displayed in the example
message in README. The existing rules do not allow for the PID
brackets. This commit properly resolves them while also maintaining
backwards compatibility for a PID-less log format.
In case there is a prefix applied to the message, the `^haproxy`
condition match would fail. There are already some of the extractors
which have dropped the line-start requirement from their regular
expressions. This commit removes the requirement from all the
extractors for consistency and input flexibility.
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