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
227 stars 119 forks source link

Gandi format does not match IPv6 addresses #338

Open ghislabo opened 2 years ago

ghislabo commented 2 years 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 2 years ago

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

ghislabo commented 2 years ago

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

sgiehl commented 2 years ago

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