Skip to content

Commit

Permalink
Use right queue variable
Browse files Browse the repository at this point in the history
  • Loading branch information
zaccari committed Jan 31, 2013
1 parent 1a02aa1 commit 6735ee4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/logstash/outputs/elasticsearch_river.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def prepare_river
hostname = Socket.gethostname

# Replace spaces with hyphens and remove all non-alpha non-dash non-underscore characters
river_name = "#{hostname} #{queue}".gsub(' ', '-').gsub(/[^\w-]/, '')
river_name = "#{hostname} #{@queue}".gsub(' ', '-').gsub(/[^\w-]/, '')

api_path = "/_river/logstash-#{river_name}/_meta"
@status_path = "/_river/logstash-#{river_name}/_status"
Expand Down

0 comments on commit 6735ee4

Please sign in to comment.