我正在查看具有大量条目的访问日志,例如:
localhost_access_log.2012-05-07.txt:129.223.57.10 - - [07/May/2012:00:02:11 +0000] 2434 "POST /maker/www/jsp/opp/OpportunityForm.do HTTP/1.1" 302 - "https://dm2.myjones.com/maker/www/jsp/opp/Opportunity.jsp?screenDisplay={0}&forecastIcon={1}" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.2; MS-RTC LM 8)"
日期时间戳后面的数字是执行时间,引号中的字符串是 URL。
我希望只是 sed,URL 和响应时间,并将它们的格式
URL, response time
例如
POST /maker/www/jsp/opp/OpportunityForm.do HTTP/1.1, 2434