# Kibana spaces and index customization

**URL:** <https://discuss.elastic.co/t/kibana-spaces-and-index-customization/195499>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [August 16, 2019, 1:21pm UTC](https://discuss.elastic.co/t/kibana-spaces-and-index-customization/195499 "2019-08-16T13:21:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marta\_Zagrajek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marta_zagrajek/32/47442_2.png) [@Marta\_Zagrajek](https://discuss.elastic.co/u/Marta_Zagrajek)\
**Post date:** [August 16, 2019, 1:21pm UTC](https://discuss.elastic.co/t/kibana-spaces-and-index-customization/195499/1 "2019-08-16T13:21:48Z")

</div>

Hi  
I created few spaces in one elasticsearch.  
I had one big log file and one index which differed only by field calles app\_name.

So I decided to stick with one, but also shard them for different spaces. My filebeat looks that way:  
filebeat.prospectors:

- type: log  
enabled: true  
paths:

- type: log  
enabled: true  
paths:

- type: log  
enabled: true  
paths:

filebeat.config.modules:  
reload.enabled: false  
reload.period: 10s

setup.template.name: "microservice"  
setup.template.pattern: "microservice-\*"  
setup.template.settings:  
index.number\_of\_shards: 1  
setup.dashboards.enabled: false

#setup.kibana:  
#-------------------------- Elasticsearch output ------------------------------  
output.elasticsearch:  
hosts: ["elk-microservice:9200"]  
indices:  
- index: "microservice-1-%{+yyyy.MM.dd}"  
when.contains:  
app\_name: "1"  
- index: "microservice-2-%{+yyyy.MM.dd}"  
when.contains:  
app\_name: "2"  
- index: "microservice-3-%{+yyyy.MM.dd}"  
when.contains:  
app\_name: "3"  
template.name: filebeat

logging:  
level: error

# level: warning

# level: info

```
to_syslog: false
to_files: true
files:
    path: "*/*/*/filebeat/logs"
    name: microservice.log
    keepfiles: 2
    permissions: 0644

```

It is my first try with spaces and sharding the existing index.  
What did I do wrong? Because there is new index called filebeat-beat-name-date.  
I did not want that to happen 😉

---

<div class="post-metadata">

**Author:** ![Marta\_Zagrajek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marta_zagrajek/32/47442_2.png) [@Marta\_Zagrajek](https://discuss.elastic.co/u/Marta_Zagrajek)\
**Post date:** [August 18, 2019, 9:48am UTC](https://discuss.elastic.co/t/kibana-spaces-and-index-customization/195499/2 "2019-08-18T09:48:59Z")

</div>

Problem was in field app\_name. I did not write specifically fields.app\_name and filebeat did not understand this.

---

<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:** [September 15, 2019, 9:49am UTC](https://discuss.elastic.co/t/kibana-spaces-and-index-customization/195499/3 "2019-09-15T09:49:01Z")

</div>

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