Sha256: 2f46962513e4e0ea4d40a76c38b1e686f1768107a4fdc7cf1974a22ee543f6de

Contents?: true

Size: 269 Bytes

Versions: 6

Compression:

Stored size: 269 Bytes

Contents

#!/usr/bin/env ruby
require_relative './common'

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

6 entries across 6 versions & 2 rubygems

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