# Docker + Elasticsearch + Geoip + User Agent Pipeline

**URL:** <https://discuss.elastic.co/t/docker-elasticsearch-geoip-user-agent-pipeline/228517>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [April 17, 2020, 1:02pm UTC](https://discuss.elastic.co/t/docker-elasticsearch-geoip-user-agent-pipeline/228517 "2020-04-17T13:02:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zain\_Zafar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zain_zafar/32/66505_2.png) [@Zain\_Zafar](https://discuss.elastic.co/u/Zain_Zafar)\
**Post date:** [April 17, 2020, 1:02pm UTC](https://discuss.elastic.co/t/docker-elasticsearch-geoip-user-agent-pipeline/228517/1 "2020-04-17T13:02:26Z")

</div>

Hi,

I have an elasticsearch dependency for my app and I'm using the following configuration in the docker-compose.yml file:

```auto
elasticsearch:
    image: docker.elastic.co/elasticsearch/elasticsearch:6.6.0 
    ports:
      - "9200:9200"
    volumes:
      - esdata:/usr/share/elasticsearch/data

```

This builds the image correctly and installs the ingest-geoip and ingest-useragent plugin correctly:

```auto
[2020-04-17T12:52:21,839][INFO][o.e.p.PluginsService] [dStP6fF] loaded plugin [ingest-geoip]
[2020-04-17T12:52:21,839][INFO][o.e.p.PluginsService] [dStP6fF] loaded plugin [ingest-user-agent]

```

I, however, need to create two different pipelines for these plugins using a PUT request. Ideally, as part of the image building, the pipelines should only be created once.

This is the body of the PUT request:

```auto
{
    "parse_ip_ua": {
        "description": "Parse IP Address and User Agent information",
        "processors": [
            {
                "user_agent": {
                    "field": "user_agent",
                    "target_field": "useragent",
                    "ignore_missing": true
                }
            },
            {
                "geoip": {
                    "field": "ip_address",
                    "ignore_missing": true
                }
            }
        ]
    }
}

```

Any idea on how to achieve this? Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Zain\_Zafar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zain_zafar/32/66505_2.png) [@Zain\_Zafar](https://discuss.elastic.co/u/Zain_Zafar)\
**Post date:** [April 20, 2020, 6:24am UTC](https://discuss.elastic.co/t/docker-elasticsearch-geoip-user-agent-pipeline/228517/2 "2020-04-20T06:24:59Z")

</div>

Bump. Anyone?

---

<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:** [May 18, 2020, 6:25am UTC](https://discuss.elastic.co/t/docker-elasticsearch-geoip-user-agent-pipeline/228517/3 "2020-05-18T06:25:03Z")

</div>

Closed on May 18, 2020, 6:25am UTC

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