<NME> stdout.rb
<BEF> ADDFILE
<MSG> - Add the new refactored agent model.
  An agent can read from any input, apply filters, and pass to any output.
    * Inputs are files, amqp, stomp, http server, syslog server, etc.
    * Outputs are similar.
    * Filters are for manipulating events (parsing, adding data, trimming
      private data, etc)
  Inputs so far: amqp, file.
  Outputs so far: amqp, stdout.
  Filters so far: grok (pattern discovery only)

  A sample custom agent is in examples/test.rb


<DFF> @@ -0,0 +1,19 @@
+require "logstash/namespace"
+require "logstash/event"
+require "uri"
+
+class LogStash::Outputs::Stdout
+  def initialize(url, config={}, &block)
+    @url = url
+    @url = URI.parse(url) if url.is_a? String
+    @config = config
+  end
+
+  def register
+    # nothing to do
+  end # def register
+
+  def receive(event)
+    puts event
+  end # def event
+end # class LogStash::Outputs::Stdout

- Add the new refactored agent model.   An agent can read from any input, apply filters, and pass to any output.     * Inputs are files, amqp, stomp, http server, syslog server, etc.     * Outputs are similar.     * Filters are for manipulating events (parsing, adding data, trimming       private data, etc)   Inputs so far: amqp, file.   Outputs so far: amqp, stdout.   Filters so far: grok (pattern discovery only)