Trying to import local apache logs

When I try and run the following import I get an error and it looks like the script dumps to the console…

python /www/mstats/misc/log-analytics/ --idsite=1 --url= /var/log/

[INFO] Error when connecting to Matomo: <urlopen error Matomo returned an invalid response: <!doctype html>

I have tried both --url=http and https and both and with the same error


page keeps refreshing with [INFO] Retrying request, attempt number 3 at bottom number incrementing