mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -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
|
hostname = Socket.gethostname
|
||||||
|
|
||||||
# Replace spaces with hyphens and remove all non-alpha non-dash non-underscore characters
|
# 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"
|
api_path = "/_river/logstash-#{river_name}/_meta"
|
||||||
@status_path = "/_river/logstash-#{river_name}/_status"
|
@status_path = "/_river/logstash-#{river_name}/_status"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue