# LogStash::Json::ParserError: Invalid numeric value: Leading zeroes not allowed

**URL:** https://discuss.elastic.co/t/logstash-invalid-numeric-value-leading-zeroes-not-allowed/186150
**Category:** Logstash
**Tags:** elastic-stack-monitoring
**Created:** [June 17, 2019, 7:54pm UTC](https://discuss.elastic.co/t/logstash-invalid-numeric-value-leading-zeroes-not-allowed/186150 "2019-06-17T19:54:03Z")
**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: [June 17, 2019, 8:42pm UTC](https://discuss.elastic.co/t/logstash-invalid-numeric-value-leading-zeroes-not-allowed/186150/2 "2019-06-17T20:42:18Z")

</div>

Try running [this](https://discuss.elastic.co/t/trying-to-add-ruby-filter-to-remove-leading-zero/168901/4) filter _before_ you parse the JSON. It might need tweaking to make the pattern more specific.

---

_[View the full topic](https://discuss.elastic.co/t/logstash-invalid-numeric-value-leading-zeroes-not-allowed/186150)._
