# Access to a element in a array

**URL:** <https://discuss.elastic.co/t/access-to-a-element-in-a-array/41376>\
**Category:** Logstash\
**Created:** [February 10, 2016, 12:44pm UTC](https://discuss.elastic.co/t/access-to-a-element-in-a-array/41376 "2016-02-10T12:44:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![m.francia](https://avatars.discourse-cdn.com/v4/letter/m/5daacb/32.png) [@m.francia](https://discuss.elastic.co/u/m.francia)\
**Post date:** [February 10, 2016, 12:44pm UTC](https://discuss.elastic.co/t/access-to-a-element-in-a-array/41376/1 "2016-02-10T12:44:51Z")

</div>

Hi!

I have a json that looks like this

```
{
    "aplication": "aula3vga",
    "nclients": "6",
    "anchoBanda[Mbs]": 9.315848,
    "dataclients": [
        {
            "aplication": "aula3vga",
            "ipclient": " ********",
            "flashver": "WIN 20,0,0,272",
            "timeonline": 91.745916666667
        },
        {
            "aplication": "aula3vga",
            "ipclient": " ********",
            "flashver": "WIN 20,0,0,286",
            "timeonline": 93.219316666667
        },
        {
            "aplication": "aula3vga",
            "ipclient": " ********",
            "flashver": "WIN 20,0,0,286",
            "timeonline": 192.93105
        },
        {
            "aplication": "aula3vga",
            "ipclient": " ********",
            "flashver": "WIN 20,0,0,286",
            "timeonline": 313.38386666667
        },
        {
            "aplication": "aula3vga",
            "ipclient": " ********",
            "flashver": "LNX.11,1,102,55",
            "timeonline": 1271.8307333333
        },
        {
            "aplication": "aula3vga",
            "ipclient": " ********",
            "flashver": "WIN 18,0,0,209",
            "timeonline": 3186.85215
        }
    ]
},

```

I want to access to all ipclient elements and use the filter geoip with theses ip´s being the result somethig like this

```
 {
        "aplication": "aula3vga",
        "nclients": "6",
        "anchoBanda[Mbs]": 9.315848,
        "dataclients": [
            {
                "aplication": "aula3vga",
                "ipclient": " ********",
                "flashver": "WIN 20,0,0,272",
                "timeonline": 91.745916666667
                "geoip": {
                "ip": "79.146.194.67",
                "country_code2": "ES",
                "country_code3": "ESP",
                "country_name": "Spain",
                "continent_code": "EU",
                "region_name": "29",
                "city_name": "Pinto",
                "postal_code": "28320",
                "latitude": 40.2415,
                "longitude": -3.6999999999999886,
                "timezone": "Europe/Madrid",
                "real_region_name": "Madrid",
                "location": [
                   -3.6999999999999886,
                  40.2415
                 ],
                "coordinates": [
                  -3.6999999999999886,
                  40.2415
                 ]
                 }
             },

```

Thanks in advance.

---

<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 6, 2017, 5:12am UTC](https://discuss.elastic.co/t/access-to-a-element-in-a-array/41376/2 "2017-07-06T05:12:15Z")

</div>


