# Remove \_id, \_index, \_score, \_type fields from index by logstash

**URL:** https://discuss.elastic.co/t/remove-id-index-score-type-fields-from-index-by-logstash/290283
**Category:** Logstash
**Created:** [November 26, 2021, 12:23pm UTC](https://discuss.elastic.co/t/remove-id-index-score-type-fields-from-index-by-logstash/290283 "2021-11-26T12:23:55Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![mangeshs](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@mangeshs](https://discuss.elastic.co/u/mangeshs)
#### Post date: [November 26, 2021, 12:23pm UTC](https://discuss.elastic.co/t/remove-id-index-score-type-fields-from-index-by-logstash/290283/1 "2021-11-26T12:23:55Z")

</div>

I want to delete above fields from event in Elasticsearch  
from logstash config

---

<div class="post-metadata">

### Author: ![AquaX](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aquax/32/92006_2.png) [@AquaX](https://discuss.elastic.co/u/AquaX)
#### Post date: [December 7, 2021, 3:52pm UTC](https://discuss.elastic.co/t/remove-id-index-score-type-fields-from-index-by-logstash/290283/2 "2021-12-07T15:52:03Z")

</div>

Use a mutate filter to remove the field.

---

<div class="post-metadata">

### Author: ![aaron-nimocks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron-nimocks/32/73965_2.png) [@aaron-nimocks](https://discuss.elastic.co/u/aaron-nimocks)
#### Post date: [December 7, 2021, 4:46pm UTC](https://discuss.elastic.co/t/remove-id-index-score-type-fields-from-index-by-logstash/290283/3 "2021-12-07T16:46:55Z")

</div>

I don't believe you can remove those fields.

---

<div class="post-metadata">

### Author: ![mangesh\_shinde](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mangesh_shinde/32/93271_2.png) [@mangesh\_shinde](https://discuss.elastic.co/u/mangesh_shinde)
#### Post date: [December 8, 2021, 7:05am UTC](https://discuss.elastic.co/t/remove-id-index-score-type-fields-from-index-by-logstash/290283/4 "2021-12-08T07:05:11Z")

</div>

Yeah. I realized that lately. We can not delete even through mutate filter.

---

<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: [January 5, 2022, 7:05am UTC](https://discuss.elastic.co/t/remove-id-index-score-type-fields-from-index-by-logstash/290283/5 "2022-01-05T07:05:15Z")

</div>

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