# IP Encode

**URL:** <https://discuss.elastic.co/t/ip-encode/159285>\
**Category:** Logstash\
**Created:** [December 4, 2018, 4:40am UTC](https://discuss.elastic.co/t/ip-encode/159285 "2018-12-04T04:40:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mathu\_Bhalan\_G](https://avatars.discourse-cdn.com/v4/letter/m/aca169/32.png) [@Mathu\_Bhalan\_G](https://discuss.elastic.co/u/Mathu_Bhalan_G)\
**Post date:** [December 4, 2018, 4:40am UTC](https://discuss.elastic.co/t/ip-encode/159285/1 "2018-12-04T04:40:52Z")

</div>

Hi All,  
I'm new to ELK and have requirement to encode the client ip in apache server log using the digit & alpha mapping as below.  
Is it doable ?

ex. 198.0.0.1 \> BJI.A.A.B

| num | alpha |
| --- | --- |
| 0 | A |
| 1 | B |
| 2 | C |
| 3 | D |
| 4 | E |
| 5 | F |
| 6 | G |
| 7 | H |
| 8 | I |
| 9 | J |

---

<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 1, 2019, 4:41am UTC](https://discuss.elastic.co/t/ip-encode/159285/2 "2019-01-01T04:41:00Z")

</div>

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