mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
fixed index variable parsing
This commit is contained in:
parent
25101c6ed0
commit
ecc0a6905e
1 changed files with 1 additions and 1 deletions
|
@ -206,7 +206,7 @@ class LogStash::Outputs::ElasticSearchRiver < LogStash::Outputs::Base
|
|||
# River events have a format of
|
||||
# "action\ndata\n"
|
||||
# where 'action' is index or delete, data is the data to index.
|
||||
header = { "index" => { "_index" => index, "_type" => type } }
|
||||
header = { "index" => { "_index" => event.sprintf(@index), "_type" => event.sprintf(@type) } }
|
||||
if !@document_id.nil?
|
||||
header["index"]["_id"] = event.sprintf(@document_id)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue