mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
- use codecs
This commit is contained in:
parent
99a03a88c8
commit
376aa7725d
1 changed files with 6 additions and 2 deletions
|
@ -73,8 +73,12 @@ class LogStash::Inputs::Elasticsearch < LogStash::Inputs::Base
|
|||
break if hits.empty?
|
||||
|
||||
result["hits"]["hits"].each do |hit|
|
||||
event = LogStash::Event.new(hit["_source"])
|
||||
output_queue << event
|
||||
event = hit["_source"]
|
||||
|
||||
# Hack to make codecs work
|
||||
@codec.decode(event.to_json) do |event|
|
||||
output_queue << event
|
||||
end
|
||||
end
|
||||
|
||||
# Fetch until we get no hits
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue