 	 name = "/usr/bin/tail"
 	 errorVariable="errorOut"
 	 variable="exrslt"
-	 arguments = "-500 #Application.requestlog#" />
+	 arguments = "-5000 #Application.requestlog#" />
 
 <cfset x=queryNew("ts,ip,rqst,usrname")>
 <cfloop list="#exrslt#" delimiters="#chr(10)#" index="i">


</cfloop>


<cfdump var=#x#>
</cfoutput>



	<cfquery name="thisRequests" dbtype="query">
		select * from x where ip='#ip#' order by ts
	</cfquery>
	<cfif thisrequests.recordcount gte 10>
		<!--- IPs making 10 or fewer requests just get ignored ---->
		<cfset lastTime=ISOToDateTime("2000-11-08T12:36:0")>
		<cfset nrq=0>
		<cfloop query="thisRequests">
			<cfset thisTime=ISOToDateTime(ts)>
			<cfset ttl=DateDiff("s", lastTime, thisTime)>
			<cfif ttl lte 10>
				<cfset nrq=nrq+1>
			</cfif>
			<cfset lastTime=thisTime>
		</cfloop>
		<cfif nrq gt 10>
			<cfset maybeBad=listappend(maybeBad,'#ip#|#nrq#',",")>
		</cfif>
	</cfif>
</cfloop>

<cfloop list="#maybeBad#" index="o" delimiters=",">
	<br>--o=#o#
	<cfset thisIP=listgetat(o,1,"|")>
