Skip to content

Conversation

@ardichoke
Copy link

Updated the extract_ipaddr code for MariaDB. Will actually extract ALL (unique) IPs instead of just the first one it finds.

Improved abuser parser. If a regex is specified that doesn't start with ^ or end with $, it will add ^.* and/or .*$ to ensure the pattern will match the full string. Previously, because this is using REGEXP_REPLACE, specifying a pattern that didn't match the full log line would result in more than just the targeted match being extracted. This will force patterns to match the full line resulting in only the matching grouping being extracted.

Will add ^.* and .*$ to abuser patterns automatically, when needed
Updated extract_ipaddr procedure to extract ALL addresses, not just the
first
proditis added a commit that referenced this pull request Feb 26, 2016
Improved MariaDB PCRE support
@proditis proditis merged commit 58decf3 into echothrust:master Feb 26, 2016
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.

2 participants