Fatal error when import ubuntu apache2 access log

Why I got this error, I wanted to import my apache2 access logs, it’s offline behave. But seems like piwik was trying to connect to internet.


admin@ubuntuSW:/var/www$ python /var/www/piwik/misc/log-analytics/import_logs.py --url=http://sw.gen-net.com.sg:7788 /var/log/apache2/access.log
Fatal error: Piwik returned an invalid response: <!DOCTYPE html>
<html>
	<head>
		<title>PleoData index page</title>
		<link rel="stylesheet" type="text/css" href="css/bootstrap-responsive.min.css">
		<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
		<script type="text/javascript" src="js/bootstrap.min.js"></script>
		<style t

the --url should point to Piwik itself, not your website