Sha256: dcf7acec07f40d98640d1d727c997ec4f8fdfe75c6161e9335e4eb9d8ba84d1b
Contents?: true
Size: 638 Bytes
Versions: 3
Compression:
Stored size: 638 Bytes
Contents
use 'LogAnalysis' data 'apache log on test2' do from 'apachelog/inputs' to 'apachelog/outputs' # 119.63.199.8 - - [15/Nov/2009:01:18:16 +0900] "GET /ranking/game?page=31 HTTP/1.1" 200 10077 "-" "Baiduspider+(+http://www.baidu.jp/spider/)" # 203.83.243.81 - - [15/Nov/2009:01:18:33 +0900] "GET /dns_zones.txt HTTP/1.1" 404 294 "-" "libwww-perl/5.65" each_line do pattern /(.*) (.*) (.*) \[(.*)\] (".*") (\d*) (\d*) (.*) "(.*)"/ column_name 'remote_host', 'pass', 'user', 'access_date', 'request', 'status', 'bytes', 'pass', 'ua' topic 'ua counts', :label => 'ua' do count_uniq column[:ua] end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hadoop-rubydsl-0.0.3 | examples/apachelog-v2-2.rb |
hadoop-rubydsl-0.0.2 | examples/apachelog-v2-2.rb |
hadoop-rubydsl-0.0.1 | examples/apachelog-v2-2.rb |