# Redis input wildcard key seems not working

**URL:** <https://discuss.elastic.co/t/redis-input-wildcard-key-seems-not-working/132962>\
**Category:** Logstash\
**Created:** [May 23, 2018, 9:27am UTC](https://discuss.elastic.co/t/redis-input-wildcard-key-seems-not-working/132962 "2018-05-23T09:27:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![KurtLiu](https://avatars.discourse-cdn.com/v4/letter/k/919ad9/32.png) [@KurtLiu](https://discuss.elastic.co/u/KurtLiu)\
**Post date:** [May 23, 2018, 9:27am UTC](https://discuss.elastic.co/t/redis-input-wildcard-key-seems-not-working/132962/1 "2018-05-23T09:27:21Z")

</div>

My logstash config file is simple and looks like the below.

input {  
redis {  
host =\> "localhost"  
port =\> "6379"  
key =\> "\*hdb\*"  
data\_type =\> "list"  
}  
}

output {  
elasticsearch {  
hosts =\> ["localhost:9200"]  
index =\> "%{key}-%{+YYYY.MM.dd}"  
}  
}

But it cannot work. It seems wildcard key cannot be supported by redis input plugin?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 23, 2018, 10:24pm UTC](https://discuss.elastic.co/t/redis-input-wildcard-key-seems-not-working/132962/2 "2018-05-23T22:24:00Z")

</div>

I believe you can only input a single key there.

---

<div class="post-metadata">

**Author:** ![KurtLiu](https://avatars.discourse-cdn.com/v4/letter/k/919ad9/32.png) [@KurtLiu](https://discuss.elastic.co/u/KurtLiu)\
**Post date:** [May 24, 2018, 1:55am UTC](https://discuss.elastic.co/t/redis-input-wildcard-key-seems-not-working/132962/3 "2018-05-24T01:55:00Z")

</div>

Thanks. Is there any way to add pattern match to the keys?

Otherwise I have to list all the single keys and it is cumbersome

---

<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:** [June 21, 2018, 1:55am UTC](https://discuss.elastic.co/t/redis-input-wildcard-key-seems-not-working/132962/4 "2018-06-21T01:55:04Z")

</div>

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