# "I have two Filebeat configuration files

**URL:** <https://discuss.elastic.co/t/i-have-two-filebeat-configuration-files/378637>\
**Category:** Community Ecosystem\
**Created:** [May 28, 2025, 9:27am UTC](https://discuss.elastic.co/t/i-have-two-filebeat-configuration-files/378637 "2025-05-28T09:27:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thirupathi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thirupathi/32/145431_2.png) [@Thirupathi](https://discuss.elastic.co/u/Thirupathi)\
**Post date:** [May 28, 2025, 9:27am UTC](https://discuss.elastic.co/t/i-have-two-filebeat-configuration-files/378637/1 "2025-05-28T09:27:23Z")

</div>

I have two Filebeat configuration files — `filebeat-elastic.yml` (with Elasticsearch output) and `filebeat-kafka.yml` (with Kafka output). I need to run both configurations simultaneously as long-running services using `systemctl start filebeat.service`. Please advise how to configure this setup or suggest an alternative approach to run both configurations

---

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [May 28, 2025, 1:09pm UTC](https://discuss.elastic.co/t/i-have-two-filebeat-configuration-files/378637/2 "2025-05-28T13:09:44Z")

</div>

Is it on Linux or Windows or docker or...?

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [May 28, 2025, 1:16pm UTC](https://discuss.elastic.co/t/i-have-two-filebeat-configuration-files/378637/3 "2025-05-28T13:16:27Z")

</div>

> [@Thirupathi](#):
>
> I need to run both configurations simultaneously as long-running services using `systemctl start filebeat.service`. Please advise how to configure this setup or suggest an alternative approach to run both

You need to create a new systemd service pointing to your other configuration and using a different data path as well.

You can copy the `filebeat.service` systemd file and edit it.
