<NME> udp.rb
<BEF> ADDFILE
<MSG> - add udp output

<DFF> @@ -0,0 +1,34 @@
+require "logstash/outputs/base"
+require "logstash/namespace"
+require "socket"
+
+class LogStash::Outputs::UDP < LogStash::Outputs::Base
+  config_name "udp"
+  milestone 1
+  
+  default :codec, "json"
+
+  # The address to send messages to
+  config :host, :validate => :string, :required => true
+
+  # The port to send messages on
+  config :port, :validate => :number, :required => true
+
+  public
+  def register
+    @socket = UDPSocket.new
+    @codec.on_event do |payload|
+      @socket.send(payload, 0, @host, @port)
+    end
+  end
+
+  def receive(event)
+    return unless output?(event)
+    if event == LogStash::SHUTDOWN
+      finished
+      return
+    end
+    @codec.encode(event)
+  end
+
+end # class LogStash::Outputs::Stdout

- add udp output