# Filbeat.yml file configuration to send to the cloud to different indexes

**URL:** <https://discuss.elastic.co/t/filbeat-yml-file-configuration-to-send-to-the-cloud-to-different-indexes/200183>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [September 19, 2019, 10:52am UTC](https://discuss.elastic.co/t/filbeat-yml-file-configuration-to-send-to-the-cloud-to-different-indexes/200183 "2019-09-19T10:52:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fadil030889](https://avatars.discourse-cdn.com/v4/letter/f/a6a055/32.png) [@fadil030889](https://discuss.elastic.co/u/fadil030889)\
**Post date:** [September 19, 2019, 10:52am UTC](https://discuss.elastic.co/t/filbeat-yml-file-configuration-to-send-to-the-cloud-to-different-indexes/200183/1 "2019-09-19T10:52:21Z")

</div>

Hi so I have the following yaml file for filebeat, sending logs file from an on prem server to the elastic cloud. I wanted to have the config to send each log path to the defined indexes, but its not working. Anyone knows if I can use conditionals with the ilm rollover alias ?

here is the yaml file:

filebeat.inputs:

- type: log

filebeat.config.modules:  
path: ${path.config}/modules.d/\*.yml

reload.enabled: false

cloud.id: "Test\_Centralized\_Logging:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"  
cloud.auth: "elastic:yyyyyyyyyyyyyyyyyyy"  
pipeline: geoip-info

setup.ilm.enabled: true  
setup.ilm.rollover\_alias: "web01"

setup.ilm.enabled: true  
setup.ilm.rollover\_alias: "registration"

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:** [October 17, 2019, 10:52am UTC](https://discuss.elastic.co/t/filbeat-yml-file-configuration-to-send-to-the-cloud-to-different-indexes/200183/2 "2019-10-17T10:52:36Z")

</div>

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