lib/logstash-cli/command/grep.rb in logstash-cli-0.0.2 vs lib/logstash-cli/command/grep.rb in logstash-cli-0.0.3

- old
+ new

@@ -1,10 +1,10 @@ require 'date' require 'yajl/json_gem' -module LogstashCli::Command +module Grep def _grep(pattern,options) es_url = options[:esurl] index_prefix = options[:index_prefix] @@ -78,9 +78,10 @@ end output = case options[:format] when 'csv' then result.to_csv({:col_sep => options[:delim]}) when 'json' then result.to_json + when 'plain' then result.join(options[:delim]) end #tstamp = Time.iso8601(res[:@timestamp]).localtime.iso8601 puts output result = []