# Logstash-Forwarder and Redis

**URL:** <https://discuss.elastic.co/t/logstash-forwarder-and-redis/2702>\
**Category:** Logstash\
**Created:** [June 15, 2015, 2:26pm UTC](https://discuss.elastic.co/t/logstash-forwarder-and-redis/2702 "2015-06-15T14:26:56Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [July 3, 2015, 7:33am UTC](https://discuss.elastic.co/t/logstash-forwarder-and-redis/2702/4 "2015-07-03T07:33:23Z")

</div>

I think [LSF's README file](https://github.com/elastic/logstash-forwarder/blob/master/README.md) explains it's reason for being. See below for how to create different indexing depending on the message.

> [@How to handle multiple inputs with Logstash to different indices](https://discuss.elastic.co/t/how-to-handle-multiple-inputs-with-logstash-to-different-indices/24541/2):
>
> Use the [grok filter](https://www.elastic.co/guide/en/logstash/current/plugins-filters-grok.html) to extract the project name from the input file path (stored in the path field), then reference that field when setting the index pattern of the [elasticsearch output](https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html). elasticsearch { ... index =\> "logstash-%{project}-%{+YYYY.MM.dd}" }

---

_[View the full topic](https://discuss.elastic.co/t/logstash-forwarder-and-redis/2702)._
