# Filebeat/elasticsearch create daily index

**URL:** <https://discuss.elastic.co/t/filebeat-elasticsearch-create-daily-index/251532>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [October 9, 2020, 6:19am UTC](https://discuss.elastic.co/t/filebeat-elasticsearch-create-daily-index/251532 "2020-10-09T06:19:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jack\_Daniels](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jack_daniels/32/76883_2.png) [@Jack\_Daniels](https://discuss.elastic.co/u/Jack_Daniels)\
**Post date:** [October 9, 2020, 6:19am UTC](https://discuss.elastic.co/t/filebeat-elasticsearch-create-daily-index/251532/1 "2020-10-09T06:19:02Z")

</div>

Hi, im trying create per day index with filebeat.  
Can you help me? Here is part of filebeat.yml file

```
  output.elasticsearch:
      # Array of hosts to connect to.
      hosts: ["test2019:9200"]
      pipeline: "logpipeline" 
      #index: "upg-prod-raw-%{+yyyy.MM.dd.HH}"
      #ilm.enabled: true
      # ilm.rollover_alias: "upg-prod-raw"
      #ilm.pattern: "{now/d{yyyy-MM-dd}}" 
      
      
    setup.template:
      enabled: true

    setup.ilm.enabled: true
    output.elasticsearch.index: "upg-prod-raw-%{+yyyy-MM-dd}"
    setup.template.name: "upg-prod-raw"
    setup.template.pattern: "upg-prod-raw-"

```

Reuslt :

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/9/c/9c7169b8b9a578be1b0beffe410f1cd0f270a0b6.png)

---

<div class="post-metadata">

**Author:** ![mtojek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mtojek/32/63863_2.png) [@mtojek](https://discuss.elastic.co/u/mtojek)\
**Post date:** [October 12, 2020, 8:15am UTC](https://discuss.elastic.co/t/filebeat-elasticsearch-create-daily-index/251532/2 "2020-10-12T08:15:49Z")

</div>

You have `output.elasticsearch.index` defined in `output.elasticsearch`. Try to change the first one to `index`.

---

<div class="post-metadata">

**Author:** ![Jack\_Daniels](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jack_daniels/32/76883_2.png) [@Jack\_Daniels](https://discuss.elastic.co/u/Jack_Daniels)\
**Post date:** [October 13, 2020, 3:54am UTC](https://discuss.elastic.co/t/filebeat-elasticsearch-create-daily-index/251532/3 "2020-10-13T03:54:41Z")

</div>

Thank you!

---

<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:** [November 10, 2020, 5:54am UTC](https://discuss.elastic.co/t/filebeat-elasticsearch-create-daily-index/251532/4 "2020-11-10T05:54:57Z")

</div>

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