# Logstash keeps nonstop indexing data from redis to elasticsearch

**URL:** <https://discuss.elastic.co/t/logstash-keeps-nonstop-indexing-data-from-redis-to-elasticsearch/74213>\
**Category:** Logstash\
**Created:** [February 7, 2017, 11:28am UTC](https://discuss.elastic.co/t/logstash-keeps-nonstop-indexing-data-from-redis-to-elasticsearch/74213 "2017-02-07T11:28:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![daaakeee](https://avatars.discourse-cdn.com/v4/letter/d/dbc845/32.png) [@daaakeee](https://discuss.elastic.co/u/daaakeee)\
**Post date:** [February 7, 2017, 11:28am UTC](https://discuss.elastic.co/t/logstash-keeps-nonstop-indexing-data-from-redis-to-elasticsearch/74213/1 "2017-02-07T11:28:31Z")

</div>

Hi. I am having troubles at indexing logs from  
Redis, which takes data from log file as an input.(i.e. trying to  
use shipper to Redis).

shipper.conf  
input{  
file{  
type =\> "filelog"  
path =\> ["directory/to/logfile/search.log","directory/to/log/file"]  
}  
}  
filter{

}  
output{  
redis{  
host =\> "redishost:6379"  
data\_type =\> "list"  
key =\> "logstash"  
codec =\> json  
}  
}

logsss.conf  
input {  
redis {  
host =\> "redishost"  
key =\> "logstash"  
data\_type =\> "list"  
codec =\> json  
type =\> "redis"  
tags =\> ["redis"]  
}  
}  
output {  
elasticsearch {  
hosts =\> ["elastichost:9200"]  
sniffing =\> false  
manage\_template =\> false  
index =\> "test"  
document\_type =\> "first"  
}  
}

---

<div class="post-metadata">

**Author:** ![daaakeee](https://avatars.discourse-cdn.com/v4/letter/d/dbc845/32.png) [@daaakeee](https://discuss.elastic.co/u/daaakeee)\
**Post date:** [February 8, 2017, 4:59am UTC](https://discuss.elastic.co/t/logstash-keeps-nonstop-indexing-data-from-redis-to-elasticsearch/74213/2 "2017-02-08T04:59:31Z")

</div>

The issue was in the key of data. We must use static names , should use static(for example, type =\> "logstash%{type}").  
Logstash can't blpop static named keys

---

<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:** [March 8, 2017, 5:00am UTC](https://discuss.elastic.co/t/logstash-keeps-nonstop-indexing-data-from-redis-to-elasticsearch/74213/3 "2017-03-08T05:00:00Z")

</div>

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