# Multiple document- types in filebeat

**URL:** <https://discuss.elastic.co/t/multiple-document-types-in-filebeat/44897>\
**Category:** Beats\
**Created:** [March 19, 2016, 12:06pm UTC](https://discuss.elastic.co/t/multiple-document-types-in-filebeat/44897 "2016-03-19T12:06:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![valjohn1647](https://avatars.discourse-cdn.com/v4/letter/v/7bcc69/32.png) [@valjohn1647](https://discuss.elastic.co/u/valjohn1647)\
**Post date:** [March 19, 2016, 12:06pm UTC](https://discuss.elastic.co/t/multiple-document-types-in-filebeat/44897/1 "2016-03-19T12:06:10Z")

</div>

Hi All

I need to set the multiple document\_type for each log path, blow is the configuration that i used .

After that filebeat only send lastly defined log files to the server ( document\_type with cucum-cdr) , not the document\_type with syslog .

Can you guys please advice me how to fix this issue , Need to send both log files to the server with different document types

filebeat:  
prospectors:  
-

```
  paths:
    - "/home/syslog/filebeat/redware/*.log"
  document_type: syslog

 paths:
    - "/home/voip/cdr_StandAloneCluster_01_2016*"
 document_type: cucm-cdr
```

---

<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:** [March 19, 2016, 4:14pm UTC](https://discuss.elastic.co/t/multiple-document-types-in-filebeat/44897/2 "2016-03-19T16:14:03Z")

</div>

The formatting of your configuration is mangled so I'm not sure exactly what it looks like ( **always** post Filebeat configuration formatted as code), but it _seems_ to be this:

```auto
filebeat:
  prospectors:
    -
      paths:
         - "/home/syslog/filebeat/redware/*.log"
      document_type: syslog

      paths:
        - "/home/voip/cdr_StandAloneCluster_01_2016*"
      document_type: cucm-cdr

```

If that's the case then you're missing a "-" before the second "paths" declaration. See the example at [https://www.elastic.co/guide/en/beats/filebeat/current/configuration-filebeat-options.html](https://www.elastic.co/guide/en/beats/filebeat/current/configuration-filebeat-options.html).

---

<div class="post-metadata">

**Author:** ![valjohn1647](https://avatars.discourse-cdn.com/v4/letter/v/7bcc69/32.png) [@valjohn1647](https://discuss.elastic.co/u/valjohn1647)\
**Post date:** [March 28, 2016, 10:10am UTC](https://discuss.elastic.co/t/multiple-document-types-in-filebeat/44897/3 "2016-03-28T10:10:05Z")

</div>

Thanks

---

<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:54pm UTC](https://discuss.elastic.co/t/multiple-document-types-in-filebeat/44897/4 "2017-07-05T21:54:07Z")

</div>


