# How to set up name for default template

**URL:** <https://discuss.elastic.co/t/how-to-set-up-name-for-default-template/234361>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [May 26, 2020, 2:59pm UTC](https://discuss.elastic.co/t/how-to-set-up-name-for-default-template/234361 "2020-05-26T14:59:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adriann](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adriann/32/77780_2.png) [@Adriann](https://discuss.elastic.co/u/Adriann)\
**Post date:** [May 26, 2020, 2:59pm UTC](https://discuss.elastic.co/t/how-to-set-up-name-for-default-template/234361/1 "2020-05-26T14:59:18Z")

</div>

I have a configuration as shown below

```
#-------------------------- Elasticsearch output ------------------------------
output.elasticsearch:
  # Array of hosts to connect to.
  hosts: ["IP:9200"]
  username: "elastic"
  password: "elastic"
  # Protocol - either `http` (default) or `https`.
  protocol: "http"

  # Authentication credentials - either API key or username/password.
  #api_key: "id:api_key"
  indices:
    - index: "filebeat-netflow-%{+yyyy.MM.dd}"
      when.equals:
        event.module: "netflow"

    - index: "filebeat-cisco-%{+yyyy.MM.dd}"
      when.equals:
        event.module: "cisco"

```

I want to create rule for the default template.

I can [read](https://www.elastic.co/guide/en/beats/filebeat/current/defining-processors.html#conditions) that there is a way to do that but I cannot find any use case example and all my tries fails. Can you show me the way?

Or is there a way to disable the default index that filebeat is creating event I don't want it?  
It's empty and giving me error inside kibana dashboards that say one of my shards is not working properly.

---

<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:** [June 23, 2020, 4:29pm UTC](https://discuss.elastic.co/t/how-to-set-up-name-for-default-template/234361/3 "2020-06-23T16:29:03Z")

</div>

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