# Filebeat Configuration

**URL:** https://discuss.elastic.co/t/filebeat-configuration/310399
**Category:** Beats
**Tags:** filebeat
**Created:** [July 22, 2022, 12:42pm UTC](https://discuss.elastic.co/t/filebeat-configuration/310399 "2022-07-22T12:42:29Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![tractor\_boy](https://avatars.discourse-cdn.com/v4/letter/t/278dde/32.png) [@tractor\_boy](https://discuss.elastic.co/u/tractor_boy)
#### Post date: [July 22, 2022, 12:42pm UTC](https://discuss.elastic.co/t/filebeat-configuration/310399/1 "2022-07-22T12:42:30Z")

</div>

I am trying to configure filebeat to write logs to elastic. I have got the logs to go into elastic, but want know to set up ilm.

I have

setup.ilm:  
enabled: true  
policy\_name: "My\_Policy"

And when looking in elastic that policy now exists, but the logs are not going into this policy. How do I get the logs to attach to the policy that I have created?

---

<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 19, 2022, 2:43pm UTC](https://discuss.elastic.co/t/filebeat-configuration/310399/2 "2022-08-19T14:43:28Z")

</div>

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