Problem in import server log file

hi

i m try to import apache server log file using python script in localhost machine. when i m execute the script eg:

C:\Python26>python E:\npi_doc_root\piwik\misc\log-analytics\import_logs.py --url=http://analytics.example.com D:\Logs\ex130228.log --idsite=1234 --recorders=4 --enable-http-errors --enable-http-redirects --enable-static --enable-bots

it shows error

Fatal error: [Errno 11001] getaddrinfo failed

if im using url like this

C:\Python26>python E:\npi_doc_root\piwik\misc\log-analytics\import_logs.py --url=http://localhost/piwik/piwik.php D:\Logs\ex130228.log --idsite=1234 --recorders=4 --enable-http-errors --enable-http-redirects --enable-static --enable-bots

it show error

Fatal error: Piwik returned an invalid response:

please help me and tell me proper procedure how to import the apache server log file

what version python? If you dont have it already your python should be at least v 2.7.3.

Hi

Please make sure that you can go to http://analytics.example.com from the server you are running the script on. Sometime you have to edit the /etc/host file to map the IP address.

Regards
Kanwar