matomo-org / matomo-log-analytics

Import any kind of server logs in Matomo for powerful log analytics. Universal log file parsing and reporting.
https://matomo.org/log-analytics/
GNU General Public License v3.0
224 stars 118 forks source link

Gandi format does not match IPv6 addresses #338

Open ghislabo opened 1 year ago

ghislabo commented 1 year ago

On line 490 of import_logs.py regex for _GANDI_SIMPLE_HOSTING_FORMAT, the regex used to match IP addresses only works for IPv4 because it does not include the column sign.

I suggest replacing (?P<ip>[a-zA-Z0-9.]+) with (?P<ip>[\w*.:-]+) as in other regex.

sgiehl commented 1 year ago

Hi @ghislabo. Feel free to create PR to change this.

ghislabo commented 1 year ago

Sorry, not currently able to do this, which is why I proposed the change here.

sgiehl commented 1 year ago

Ok. no problem. But can't promise when someone will have time to work on this...