# Cipher filter not working on numeric data

**URL:** <https://discuss.elastic.co/t/cipher-filter-not-working-on-numeric-data/177830>\
**Category:** Logstash\
**Created:** [April 22, 2019, 9:25am UTC](https://discuss.elastic.co/t/cipher-filter-not-working-on-numeric-data/177830 "2019-04-22T09:25:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dan](https://avatars.discourse-cdn.com/v4/letter/d/eada6e/32.png) [@Dan](https://discuss.elastic.co/u/Dan)\
**Post date:** [April 22, 2019, 9:25am UTC](https://discuss.elastic.co/t/cipher-filter-not-working-on-numeric-data/177830/1 "2019-04-22T09:25:07Z")

</div>

I am using cipher filter and I am providing numeric value as a source in the filter.  
Getting below error.  
It's working if I give the source as a string value.

\*\*

> "error": "undefined method `empty?' for 1:Fixnum

\*\*

Please help me how cipher filter works for a numeric value.

---

<div class="post-metadata">

**Author:** ![Dan](https://avatars.discourse-cdn.com/v4/letter/d/eada6e/32.png) [@Dan](https://discuss.elastic.co/u/Dan)\
**Post date:** [April 26, 2019, 6:01pm UTC](https://discuss.elastic.co/t/cipher-filter-not-working-on-numeric-data/177830/2 "2019-04-26T18:01:30Z")

</div>

No one tried this  
Or this is bug in Cipher 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:** [May 24, 2019, 6:01pm UTC](https://discuss.elastic.co/t/cipher-filter-not-working-on-numeric-data/177830/3 "2019-05-24T18:01:33Z")

</div>

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