Home > pipeline

pipeline

Pipeline is a project mainly written in Ruby, it's free.

Pipeline is a web log analysis framework (web log analyzer) for advanced statistics.

Pipeline

Pipeline is a web log analysis framework (web log analyzer) for advanced statistics.

Log Stream

Pipeline read log stream line-by-line from standard-input.

Filter Queue

User-defined filters are pushed into three queues:

  • begin: preparation for the whole job
  • process: parse line, increase counter, etc
  • end: output

Sample Usage

$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + "/../lib"))
require 'pipeline'

a = Pipeline.new('word-count-example')
a.push(:begin, lambda {@inv = Hash.new 0})
a.push(:process, lambda {|line| @inv[:word_count] += line.split("|").length})
a.push(:process, lambda {|line| @inv[:line_count] += 1})
a.push(:end, lambda {p @inv})
a.run
Previous:FloodMap