mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
Use right queue variable
This commit is contained in:
parent
1a02aa15c1
commit
6735ee46d1
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ class LogStash::Outputs::ElasticSearchRiver < LogStash::Outputs::Base
|
|||
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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue