# Document for filebeat configuration

**URL:** <https://discuss.elastic.co/t/document-for-filebeat-configuration/310396>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [July 22, 2022, 12:37pm UTC](https://discuss.elastic.co/t/document-for-filebeat-configuration/310396 "2022-07-22T12:37:43Z")\
**Posts on this page:** 1\
**Showing post:** 9

<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:** [July 22, 2022, 3:43pm UTC](https://discuss.elastic.co/t/document-for-filebeat-configuration/310396/9 "2022-07-22T15:43:52Z")

</div>

You can check an example [here in the documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-put-lifecycle.html).

It is the json part:

```auto
{
  "policy": {
    "_meta": {
      "description": "used for nginx log",
      "project": {
        "name": "myProject",
        "department": "myDepartment"
      }
    },
    "phases": {
      "warm": {
        "min_age": "10d",
        "actions": {
          "forcemerge": {
            "max_num_segments": 1
          }
        }
      },
      "delete": {
        "min_age": "30d",
        "actions": {
          "delete": {}
        }
      }
    }
  }
}

```

---

_[View the full topic](https://discuss.elastic.co/t/document-for-filebeat-configuration/310396)._
