<NME> results.txt.erb
<BEF> ADDFILE
<MSG> Merge branch 'master' of github.com:logstash/logstash

<DFF> @@ -0,0 +1,10 @@
+<% 
+  # Sinatra currently doesn't do ERB with newline trimming, so we
+  # have to write this funky mishmosh that is hard to read.
+if @error %>Error: <%= @error %><% else
+  @hits.each do |hit|
+    event = LogStash::Event.new(hit["_source"])
+%><%= event.message || event.to_hash.to_json %>
+<%   end
+   end 
+%>

Merge branch 'master' of github.com:logstash/logstash