# Dissect filter not removing whitespace padding via suffix "-\>"

**URL:** https://discuss.elastic.co/t/dissect-filter-not-removing-whitespace-padding-via-suffix/161233
**Category:** Beats
**Tags:** filebeat
**Created:** [December 18, 2018, 2:10am UTC](https://discuss.elastic.co/t/dissect-filter-not-removing-whitespace-padding-via-suffix/161233 "2018-12-18T02:10:18Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![boss](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/boss/32/37352_2.png) [@boss](https://discuss.elastic.co/u/boss)
#### Post date: [December 18, 2018, 2:10am UTC](https://discuss.elastic.co/t/dissect-filter-not-removing-whitespace-padding-via-suffix/161233/1 "2018-12-18T02:10:18Z")

</div>

I was under the impression that the suffix `->` would remove all whitespace padding to the right of my field.

Ex.  
`"value": "some_value ‌‌ ‌‌ ‌‌ ‌‌ "`  
Would become  
`"value": "some_value"`

Either that assumption is incorrect or the suffix `->` does not work properly to remove whitespace if there is a non-whitespace character separating the fields.

**Example:**  
Log file:  
`some_date | some_value ‌‌ ‌‌ ‌‌ ‌‌ | some_text`

Filebeat config:

> ```
> processors: 
> - dissect: 
> ‌‌ ‌ ‌‌ tokenizer: "%{date} | %{value->} | %{text}
> 
> ```

Results:  
`"date": "some_date"`  
`"value": "some_value ‌‌ ‌‌ ‌‌ ‌‌ "`  
`"text": "some_text"`

I believe this config should remove the whitespace padding to the right of the "value" field but it does not.

_Note: I have inserted invisible characters into the example above because the elastic discussion parser removed the duplicated spaces automatically. The actual files that I am operating on do not have invisible characters._

---

<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 15, 2019, 2:18am UTC](https://discuss.elastic.co/t/dissect-filter-not-removing-whitespace-padding-via-suffix/161233/2 "2019-01-15T02:18:17Z")

</div>

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