# Insert GeoIP processor code in Logstash Filtering

**URL:** <https://discuss.elastic.co/t/insert-geoip-processor-code-in-logstash-filtering/276884>\
**Category:** Logstash\
**Tags:** docker\
**Created:** [June 24, 2021, 7:14am UTC](https://discuss.elastic.co/t/insert-geoip-processor-code-in-logstash-filtering/276884 "2021-06-24T07:14:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![valhalla](https://avatars.discourse-cdn.com/v4/letter/v/839c29/32.png) [@valhalla](https://discuss.elastic.co/u/valhalla)\
**Post date:** [June 24, 2021, 7:14am UTC](https://discuss.elastic.co/t/insert-geoip-processor-code-in-logstash-filtering/276884/1 "2021-06-24T07:14:30Z")

</div>

Hi team,

How can I add this geoip processor within Logstash's filtering?

> **[Enrich events with geoIP information | Packetbeat Reference \[master\] | Elastic](https://www.elastic.co/guide/en/beats/packetbeat/master/packetbeat-geoip.html)**

I.e

```auto
Filter {
    Mutate{
    ... 
}} 

```

In general you need first to mannualy add this pipeline to Kibana, I want to skip this mannualy adding step, by inserting the code within Logstash step.

Thank you!

---

<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:** [July 22, 2021, 7:14am UTC](https://discuss.elastic.co/t/insert-geoip-processor-code-in-logstash-filtering/276884/2 "2021-07-22T07:14:42Z")

</div>

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