# Multiple inputs for Filebeat

**URL:** https://discuss.elastic.co/t/multiple-inputs-for-filebeat/247519
**Category:** Beats
**Tags:** filebeat
**Created:** [September 4, 2020, 10:27am UTC](https://discuss.elastic.co/t/multiple-inputs-for-filebeat/247519 "2020-09-04T10:27:30Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Sid](https://avatars.discourse-cdn.com/v4/letter/s/5f9b8f/32.png) [@Sid](https://discuss.elastic.co/u/Sid)
#### Post date: [September 4, 2020, 10:27am UTC](https://discuss.elastic.co/t/multiple-inputs-for-filebeat/247519/1 "2020-09-04T10:27:31Z")

</div>

Is it possible in Filebeat to have multiple log sources as inputs and indexed into different Elasticsearch indices?  
Suppose I have apache access logs & mysql logs. How to enable filebeat modules for apache and mysql available in modules.d right from the filebeat.yml config file with the log paths specified?

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [September 7, 2020, 9:44pm UTC](https://discuss.elastic.co/t/multiple-inputs-for-filebeat/247519/2 "2020-09-07T21:44:21Z")

</div>

Welcome to our community! 😃

> [@Sid](#):
>
> How to enable filebeat modules for apache and mysql available in modules.d right from the filebeat.yml config file with the log paths specified?

When you enable the modules, they are automatically loaded. You don't need to configure anything extra in the `filebeat.yml` file.

> [@Sid](#):
>
> Is it possible in Filebeat to have multiple log sources as inputs and indexed into different Elasticsearch indices?

Yes. You can use a process similar to this one from APM [Storing APM data in custom/specific indices](https://discuss.elastic.co/t/storing-apm-data-in-custom-specific-indices/246381)

---

<div class="post-metadata">

### Author: ![Sid](https://avatars.discourse-cdn.com/v4/letter/s/5f9b8f/32.png) [@Sid](https://discuss.elastic.co/u/Sid)
#### Post date: [September 8, 2020, 8:33am UTC](https://discuss.elastic.co/t/multiple-inputs-for-filebeat/247519/3 "2020-09-08T08:33:47Z")

</div>

Thanks for the help. The issue is resolved.

---

<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 6, 2020, 10:33am UTC](https://discuss.elastic.co/t/multiple-inputs-for-filebeat/247519/4 "2020-10-06T10:33:49Z")

</div>

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