Skip to content

Commit

Permalink
Merge pull request #7 from egnyte/master
Browse files Browse the repository at this point in the history
In the count command, ensure when printing results that the term goes first
  • Loading branch information
jedi4ever committed Nov 19, 2012
2 parents 245603a + cc560b3 commit a903693
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/logstash-cli/command/count.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ def _count(pattern,options)
puts _format(header, options)

results['terms'].each do |terms|
puts _format(terms.values, options)
result = [ terms['term'], terms['count'] ]
puts _format(result, options)

unless fields.empty? and metafields.empty?
term = terms['term']
Expand Down
2 changes: 1 addition & 1 deletion lib/logstash-cli/command/tail.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def _tail(options)

channel = AMQP::Channel.new(connection, :auto_recovery => true)

channel.queue("", :auto_delete => auto_delete, :peristent => persistent , :durable => durable) do |queue, declare_ok|
channel.queue("", :auto_delete => auto_delete, :persistent => persistent , :durable => durable) do |queue, declare_ok|
queue.bind(exchange_name, :routing_key => routing_key)
queue.subscribe do |payload|
parsed_message = JSON.parse(payload)
Expand Down

0 comments on commit a903693

Please sign in to comment.