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

**URL:** <https://discuss.elastic.co/t/how-to-connect-aws-redis-servers-elastic-cache-service-with-ssl-in-transit-true-as-input-plugin/146208>\
**Category:** Logstash\
**Created:** [August 27, 2018, 3:55pm UTC](https://discuss.elastic.co/t/how-to-connect-aws-redis-servers-elastic-cache-service-with-ssl-in-transit-true-as-input-plugin/146208 "2018-08-27T15:55:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nikhil\_Chabukswar](https://avatars.discourse-cdn.com/v4/letter/n/51bf81/32.png) [@Nikhil\_Chabukswar](https://discuss.elastic.co/u/Nikhil_Chabukswar)\
**Post date:** [August 27, 2018, 3:55pm UTC](https://discuss.elastic.co/t/how-to-connect-aws-redis-servers-elastic-cache-service-with-ssl-in-transit-true-as-input-plugin/146208/1 "2018-08-27T15:55:08Z")

</div>

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](http://master.qa-logging-redis.dnamgj.use1.cache.amazonaws.com:443) (Redis::TimeoutError)\>}

PLEASE SUGGEST ME THE RIGHT SETTING.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 24, 2018, 3:55pm UTC](https://discuss.elastic.co/t/how-to-connect-aws-redis-servers-elastic-cache-service-with-ssl-in-transit-true-as-input-plugin/146208/2 "2018-09-24T15:55:13Z")

</div>

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