# Treatments by filebeat files

**URL:** <https://discuss.elastic.co/t/treatments-by-filebeat-files/278539>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [July 13, 2021, 12:52pm UTC](https://discuss.elastic.co/t/treatments-by-filebeat-files/278539 "2021-07-13T12:52:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![boubou](https://avatars.discourse-cdn.com/v4/letter/b/b77776/32.png) [@boubou](https://discuss.elastic.co/u/boubou)\
**Post date:** [July 13, 2021, 12:52pm UTC](https://discuss.elastic.co/t/treatments-by-filebeat-files/278539/1 "2021-07-13T12:52:05Z")

</div>

Hello everybody 😃

I need you to configure my filebeat. In fact, I have two logfiles ( /var/log/alpha.log and /var/log/beta.log )  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/9/f/9f175f82d91ffbe9bfadccedce3711f906b46832.png)

Now, i want create a pipeline with two different treatments... something like this :

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/4/1/41e921ed49d0bd4cae0808b3acbd3a6644b86474.png)

I know it's false but I want to do a processing by file and provide the result in a specific index, is it possible ?

Thanks for your help

---

<div class="post-metadata">

**Author:** ![legoguy1000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/legoguy1000/32/54301_2.png) [@legoguy1000](https://discuss.elastic.co/u/legoguy1000)\
**Post date:** [July 13, 2021, 11:56pm UTC](https://discuss.elastic.co/t/treatments-by-filebeat-files/278539/2 "2021-07-13T23:56:17Z")

</div>

Yes you can either use a variable for the index name or u can create multiple elasticsearch outputs contained in if statements with different index settings.

---

<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:** [August 10, 2021, 11:56pm UTC](https://discuss.elastic.co/t/treatments-by-filebeat-files/278539/3 "2021-08-10T23:56:52Z")

</div>

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