mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
Fixes completely broken redis output
This commit is contained in:
parent
70291e76a2
commit
472a8de49d
1 changed files with 2 additions and 2 deletions
|
@ -64,9 +64,9 @@ class LogStash::Outputs::Redis < LogStash::Outputs::Base
|
|||
begin
|
||||
@redis ||= connect
|
||||
if @data_type == 'list'
|
||||
@redis.rpush event.sprintf(@list), event.to_json if @list
|
||||
@redis.rpush event.sprintf(@key), event.to_json
|
||||
else
|
||||
@redis.publish event.sprintf(@channel), event.to_json if @channel
|
||||
@redis.publish event.sprintf(@key), event.to_json
|
||||
end
|
||||
rescue => e
|
||||
# TODO(sissel): Be specific in the exceptions we rescue.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue