How to connect AWS Redis servers (elastic-cache service) with SSL in-transit true as input plugin?

I need to ship logs from dumped in redis queue with logstash.
for that, I have used the following configuration in logstash.conf file:

input {
redis {
host => "master.qa-logging-redis.******.use1.cache.amazonaws.com" (Redis URL)
data_type => "list"
key => "P-QA-LoggingQueue"
port => 6379
type => "RedisLogs"
ssl => true
}
}

This setting is giving me error as follows:
[WARN ] 2018-08-27 15:17:10.949 [[main]<redis] redis - Redis connection problem {:exception=>#<Redis::CommandError: ERR Error running script (call to f_3236c446d3b876265fe40ac665cb6dc17e6242b0): @user_script:2: WRONGTYPE Operation against a key holding the wrong kind of value>}

When I change the logstash configuration as follows:

input {
redis {
host => "master.qa-logging-redis.******.use1.cache.amazonaws.com" (Redis URL)
data_type => "list"
key => "P-QA-LoggingQueue"
port => 443
type => "RedisLogs"
ssl => true
}
}

This setting is giving me error as follows:
[WARN ] 2018-08-27 15:54:15.794 [[main]<redis] redis - Redis connection problem {:exception=>#<Redis::CannotConnectError: Error connecting to Redis on master.qa-logging-redis.dnamgj.use1.cache.amazonaws.com:443 (Redis::TimeoutError)>}

PLEASE SUGGEST ME THE RIGHT SETTING.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.