# Logstash, split field and remove field

**URL:** https://discuss.elastic.co/t/logstash-split-field-and-remove-field/225410
**Category:** Logstash
**Created:** [March 27, 2020, 1:02pm UTC](https://discuss.elastic.co/t/logstash-split-field-and-remove-field/225410 "2020-03-27T13:02:27Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [March 27, 2020, 3:52pm UTC](https://discuss.elastic.co/t/logstash-split-field-and-remove-field/225410/2 "2020-03-27T15:52:12Z")

</div>

> [@SBH](#):
>
> But when i see it in Discover, the Data.tasks.Data is there again.

Field names are case sensitive. data.tasks.data and Data.tasks.Data are different fields.

Also, if [data][tasks] is an array then that remove\_field will not do anything. You need to include the array index in it, or else do something like [this](https://discuss.elastic.co/t/remove-subfield-using-ruby/225055/4).

---

_[View the full topic](https://discuss.elastic.co/t/logstash-split-field-and-remove-field/225410)._
