# Is it possible to define two index in the filebeat config

**URL:** https://discuss.elastic.co/t/is-it-possible-to-define-two-index-in-the-filebeat-config/103862
**Category:** Beats
**Tags:** filebeat
**Created:** [October 13, 2017, 9:13am UTC](https://discuss.elastic.co/t/is-it-possible-to-define-two-index-in-the-filebeat-config/103862 "2017-10-13T09:13:34Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Nishant\_Hurnekar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nishant_hurnekar/32/47955_2.png) [@Nishant\_Hurnekar](https://discuss.elastic.co/u/Nishant_Hurnekar)
#### Post date: [October 13, 2017, 9:13am UTC](https://discuss.elastic.co/t/is-it-possible-to-define-two-index-in-the-filebeat-config/103862/1 "2017-10-13T09:13:34Z")

</div>

Hi,

We have multiple vhost on the same server as below

web.xyz.access.log  
app.xyz.access.log

Is it possible to define two index name in the filebeat configuration or by creating separate yml file?

web.xyz.access.log --\> Index Name - web  
app.xyz.access.log --\> Index Name - app

As per default configuration, We have defined different document type for both log fine and both access logs inserting data in the single index.

Kindly help.

---

<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: [November 10, 2017, 9:13am UTC](https://discuss.elastic.co/t/is-it-possible-to-define-two-index-in-the-filebeat-config/103862/2 "2017-11-10T09:13:39Z")

</div>

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