# In Filebeat config fields.type not getting picked up in index!

**URL:** https://discuss.elastic.co/t/in-filebeat-config-fields-type-not-getting-picked-up-in-index/250658
**Category:** Beats
**Tags:** filebeat
**Created:** [October 1, 2020, 11:23am UTC](https://discuss.elastic.co/t/in-filebeat-config-fields-type-not-getting-picked-up-in-index/250658 "2020-10-01T11:23:10Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jaraws](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jaraws/32/76397_2.png) [@jaraws](https://discuss.elastic.co/u/jaraws)
#### Post date: [October 1, 2020, 11:23am UTC](https://discuss.elastic.co/t/in-filebeat-config-fields-type-not-getting-picked-up-in-index/250658/1 "2020-10-01T11:23:10Z")

</div>

I am trying to add fields.type of a pipeline to my index but for some reason is not resolving and data is going in against one single index i.e. index-other.

```auto
filebeat.inputs:
 - type: log
   enabled: true
   paths:
     - /usr/share/apps/logs/*.log
   exclude_lines: ['Aaaa:','Bbbb:','Cccc:']
   fields:
     tags: ["tag-1","tag-2"]
     type: "logs"
   fields_under_root: true

setup.ilm.enabled: false
setup.template.name: "index"
setup.template.pattern: "index-*"

output.elasticsearch:
  hosts: '${ELASTICSEARCH_HOSTS:xx-xx-xx-xx:9200}'
  index: "index-%{[fields.type]:other}"

```

I am getting all my data against index-other in ES. However I should get it against index-logs.

I need help here. What is wrong with my config?

---

<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: [October 29, 2020, 11:23am UTC](https://discuss.elastic.co/t/in-filebeat-config-fields-type-not-getting-picked-up-in-index/250658/2 "2020-10-29T11:23:27Z")

</div>

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