Multiple Bindings : 1 Site

I have a windows server running Windows 2008r2 IIS 7.5, hosting 3 URL’s within 1 website.
Site 1: http://oursite1.com , http://oursite2.com , http://oursite3.com
I have enabled all of the Fields apart from Cookies for the IIS Logs.

I have PIWIK 2.11.1 installed on a Linux server and I am importing the IIS logs using the import_logs.py script that was supplied on installation.

Within PIWIK Websites Management I have created the SiteID : 1 and added 3 URL’s http://oursite1.com, http://oursite2.com and http://oursite3.com

I have archived the imported logs.
When I investigate the Visitor Log for the SiteID: 1, the urls all start with http://oursite1.com and there is no reference to any of the entries displaying http://oursite2.com or http://oursite3.com, although the IIS logs display entries for http://oursite2.com and http://oursite3.com

Is this a limitation of PIWIK or have I missed something in the installation process ?

Many thanks

An internal developer has managed to figure out the import_logs.py script and made a change.

From line 1468:

    # only prepend main url if it's a path
    #url = (main_url if path.startswith('/') else '') + path[:1024]

    try:
        url = 'http://' + hit.host + path
    except AttributeError:
        url = (main_url if path.startswith('/') else '') + path[:1024]

Hi there

thanks for the suggestion. can you create a bug report at: Issues · matomo-org/piwik · GitHub

and attach a small log file that will let us reproduce the issue, as well as the command used to reproduce the failed import? thanks