I needed to import both IIS logs and Apache logs into AWStats. I could not get it to work (cannot remember why). But I ended up creating a zcat that detects and converts W3C logs into combined. You throw uncompressed or compressed log files of either combined or w3c format at it and it spits out combined.
Written in C and depends only on zlib.