#!/usr/bin/php -q
<?php

$hosts = array('www.example.com','www.example.net','foo.bar.example.com');

$sample_line = '1.2.3.4 - - [30/Oct/2006:21:11:55 +0000] "GET http://%s/ HTTP/1.0" 304 377 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0) Active Cache Request TCP_IMS_HIT:NONE';

for ($x=1; $x<=10000; $x++) {
	$rnd = array_rand($hosts);
	printf($sample_line, $hosts[$rnd]);
	print "\n";
}