# Filebeat to redis using multiple keys for different document types

**URL:** <https://discuss.elastic.co/t/filebeat-to-redis-using-multiple-keys-for-different-document-types/49526>\
**Category:** Beats\
**Created:** [May 9, 2016, 8:14am UTC](https://discuss.elastic.co/t/filebeat-to-redis-using-multiple-keys-for-different-document-types/49526 "2016-05-09T08:14:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tsegal](https://avatars.discourse-cdn.com/v4/letter/t/a6a055/32.png) [@tsegal](https://discuss.elastic.co/u/tsegal)\
**Post date:** [May 9, 2016, 8:14am UTC](https://discuss.elastic.co/t/filebeat-to-redis-using-multiple-keys-for-different-document-types/49526/1 "2016-05-09T08:14:47Z")

</div>

Hi all,

I am using filebeat to ship logs from a centralized log server. In the prospectors section, I defined multiple files, each with its own type, for example:

paths:

```
-/tmp/manager.log
 input_type:log
 document_type: manager.log

 -/tmp/worker.log
 input_type:log
 document_type: worker.log

```

in the output part, I defined a redis server. I leave the default index "filebeat". This can be configurable but my issue is it's global for all types, so I end up having redis with a single key storing all documents. This is an issue if I want to replay just a single type of log into the system while it's working (hot) because I don't have a proper way of removing only the keys for that log type.

Best case scenario - can I define dynamically a key by document type?  
A good solution as well - can I define explicitly a key per type? or path? or something else?

Thanks!

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [May 9, 2016, 10:26am UTC](https://discuss.elastic.co/t/filebeat-to-redis-using-multiple-keys-for-different-document-types/49526/2 "2016-05-09T10:26:09Z")

</div>

This is currently not supported by redis output. Feel free to [fill a feature request](https://github.com/elastic/beats/issues).

Event routing in general is up to logstash.

---

<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:** [July 5, 2017, 9:52pm UTC](https://discuss.elastic.co/t/filebeat-to-redis-using-multiple-keys-for-different-document-types/49526/3 "2017-07-05T21:52:15Z")

</div>


