# Multiple document type index

**URL:** <https://discuss.elastic.co/t/multiple-document-type-index/62181>\
**Category:** Beats\
**Created:** [October 4, 2016, 3:16pm UTC](https://discuss.elastic.co/t/multiple-document-type-index/62181 "2016-10-04T15:16:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gentitope](https://avatars.discourse-cdn.com/v4/letter/g/edb3f5/32.png) [@gentitope](https://discuss.elastic.co/u/gentitope)\
**Post date:** [October 4, 2016, 3:16pm UTC](https://discuss.elastic.co/t/multiple-document-type-index/62181/1 "2016-10-04T15:16:20Z")

</div>

Hi,

I want to send log to logstash from different path to seperate indices.

```auto
filebeat:
  prospectors:
    -
      paths:
        - /data/*.log
      input_type: log
      document_type: firstlog
    -
      paths:
        - /data/*.log
      input_type: log
      document_type: secondlog

```

something like the config i have above. I an using filebeat 1.3

is this possible and also if i need additional config?

---

<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:** [October 4, 2016, 8:35pm UTC](https://discuss.elastic.co/t/multiple-document-type-index/62181/2 "2016-10-04T20:35:49Z")

</div>

the `document_type` will be available via `[@metadata][type]` in logstash. You can do any filtering you want in logstash. Using `fields` settings you can add some other fields with additional meta-data.

---

<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:** [October 25, 2016, 3:16pm UTC](https://discuss.elastic.co/t/multiple-document-type-index/62181/3 "2016-10-25T15:16:57Z")

</div>

This topic was automatically closed after 21 days. New replies are no longer allowed.
