# Elasticsearch filebeat index name

**URL:** https://discuss.elastic.co/t/elasticsearch-filebeat-index-name/128274
**Category:** Beats
**Tags:** filebeat
**Created:** [April 17, 2018, 2:31am UTC](https://discuss.elastic.co/t/elasticsearch-filebeat-index-name/128274 "2018-04-17T02:31:46Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![hoangvnit](https://avatars.discourse-cdn.com/v4/letter/h/b4bc9f/32.png) [@hoangvnit](https://discuss.elastic.co/u/hoangvnit)
#### Post date: [April 17, 2018, 2:31am UTC](https://discuss.elastic.co/t/elasticsearch-filebeat-index-name/128274/1 "2018-04-17T02:31:46Z")

</div>

Hi

Currently i'm using filebeat & logstash forward nginx log to elasticsearch.  
this is my config in logstash for output to elastic

```
output {
  elasticsearch {
    hosts => "https://search-member-recipes-i6pcn3evnwfokrka6mech2i3hq.us-west-2.es.amazonaws.com:443"
    manage_template => false
    index => "%{[@metadata][beat]}-%{[@metadata][version]}-%{+YYYY.MM.dd}"
    #index => "%{[@metadata][beat]}-log"
  }

```

i don't want use format %{+YYYY.MM.dd} for index, because when we have 365day, on elasticsearch will be have 365 index.

and when i changed to %{[@metadata][beat]}-log, then elasticsearch Visualize can't display nginx log info.

anyone know what problem here, please help me

thank andvances

---

<div class="post-metadata">

### Author: ![jsoriano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsoriano/32/27920_2.png) [@jsoriano](https://discuss.elastic.co/u/jsoriano)
#### Post date: [April 17, 2018, 12:44pm UTC](https://discuss.elastic.co/t/elasticsearch-filebeat-index-name/128274/2 "2018-04-17T12:44:12Z")

</div>

In general, it is recommended to have more smaller indexes instead of a very big one, it uses to lead to better perfomance and less maintenance overheads. For example with one index per day you can easily delete old indexes without affecting recent data, or archive old data in slower and cheaper disks as it uses to be less frequently accessed, something very useful when storing time sensitive information as logs or metrics.

In any case, even if daily indexes are the default, other name patterns should work too, please check that you have an index pattern configured in Kibana that matches your index name, and that you select this index pattern in your searchs and visualizations.

---

<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: [May 15, 2018, 12:44pm UTC](https://discuss.elastic.co/t/elasticsearch-filebeat-index-name/128274/3 "2018-05-15T12:44:26Z")

</div>

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