Sha256: e147ba3f7a727c4c8ac5e360f975f8671e7873b37d2a2d971b05744a8b48e5b7

Contents?: true

Size: 376 Bytes

Versions: 7

Compression:

Stored size: 376 Bytes

Contents

#!/usr/bin/env ruby
$LOAD_PATH.unshift File.expand_path('../../lib', File.dirname(__FILE__))
require          'wukong/script'
require_relative './logline'

class ApacheLogParser < Wukong::Streamer::LineStreamer
  # create a Logline object from each record and serialize it flat to disk
  def process line
    yield Logline.parse(line)
  end
end

Wukong.run( ApacheLogParser )

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
ul-wukong-4.1.1 examples/server_logs/server_logs-01-parse-script.rb
ul-wukong-4.1.0 examples/server_logs/server_logs-01-parse-script.rb
wukong-4.0.0 examples/server_logs/server_logs-01-parse-script.rb
wukong-3.0.1 examples/server_logs/server_logs-01-parse-script.rb
wukong-3.0.0 examples/server_logs/server_logs-01-parse-script.rb
wukong-3.0.0.pre3 examples/server_logs/server_logs-01-parse-script.rb
wukong-3.0.0.pre2 examples/server_logs/server_logs-01-parse-script.rb