# Help pruning fields with "%{\[foo\]\[bar\]}" values

**URL:** <https://discuss.elastic.co/t/help-pruning-fields-with-foo-bar-values/371899>\
**Category:** Logstash\
**Created:** [December 12, 2024, 9:22am UTC](https://discuss.elastic.co/t/help-pruning-fields-with-foo-bar-values/371899 "2024-12-12T09:22:51Z")\
**Posts on this page:** 1\
**Showing post:** 7

<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:** [December 12, 2024, 4:00pm UTC](https://discuss.elastic.co/t/help-pruning-fields-with-foo-bar-values/371899/7 "2024-12-12T16:00:05Z")

</div>

Yet another option is to split the csv into an array, then pop fields from it according to the conditionals. A demonstration of the idea can be found [here](https://discuss.elastic.co/t/configure-logstash-to-show-logs-from-port-5002/250205/18).

---

_[View the full topic](https://discuss.elastic.co/t/help-pruning-fields-with-foo-bar-values/371899)._
