# Separate country code from phone number

**URL:** https://discuss.elastic.co/t/separate-country-code-from-phone-number/186075
**Category:** Logstash
**Created:** [June 17, 2019, 1:34pm UTC](https://discuss.elastic.co/t/separate-country-code-from-phone-number/186075 "2019-06-17T13:34:21Z")
**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, 3:08pm UTC](https://discuss.elastic.co/t/separate-country-code-from-phone-number/186075/2 "2019-06-17T15:08:15Z")

</div>

See [this](https://discuss.elastic.co/t/logstash-link-fileds-in-aggregate-filter/167272/2) post. You would need to re-write (in ruby) the code that is linked to.

---

_[View the full topic](https://discuss.elastic.co/t/separate-country-code-from-phone-number/186075)._
