# Logstash with IP-API

**URL:** <https://discuss.elastic.co/t/logstash-with-ip-api/181447>\
**Category:** Logstash\
**Created:** [May 16, 2019, 4:16pm UTC](https://discuss.elastic.co/t/logstash-with-ip-api/181447 "2019-05-16T16:16:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![BenB196](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/benb196/32/83401_2.png) [@BenB196](https://discuss.elastic.co/u/BenB196)\
**Post date:** [May 16, 2019, 4:16pm UTC](https://discuss.elastic.co/t/logstash-with-ip-api/181447/1 "2019-05-16T16:16:45Z")

</div>

Has anyone ever tried to integrate Logstash with [http://ip-api.com](http://ip-api.com). I know that Logstash has the GeoIP plugin which can be used. However, [http://ip-api.com](http://ip-api.com) has a much cheaper and easier to maintain setup than having to update database files weekly.

I did not come across anyone talking about integrating the two through Google and was wondering if maybe someone has tried, but never wrote about it.

---

<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:** [May 16, 2019, 4:23pm UTC](https://discuss.elastic.co/t/logstash-with-ip-api/181447/2 "2019-05-16T16:23:05Z")

</div>

Integration is trivial

```
   mutate { add_field => { "someIP" => "24.48.0.1" } }
   http { url => "http://ip-api.com/json/%{someIP}" target_body => "[geodata]" }
```

---

<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:** [June 13, 2019, 4:23pm UTC](https://discuss.elastic.co/t/logstash-with-ip-api/181447/3 "2019-06-13T16:23:32Z")

</div>

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