# \[Ingest-Node\] Accessing Data in Pipelines \[Beginner\]

**URL:** <https://discuss.elastic.co/t/ingest-node-accessing-data-in-pipelines-beginner/179091>\
**Category:** Elasticsearch\
**Created:** [April 30, 2019, 1:39pm UTC](https://discuss.elastic.co/t/ingest-node-accessing-data-in-pipelines-beginner/179091 "2019-04-30T13:39:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PeterPain](https://avatars.discourse-cdn.com/v4/letter/p/c37758/32.png) [@PeterPain](https://discuss.elastic.co/u/PeterPain)\
**Post date:** [April 30, 2019, 1:39pm UTC](https://discuss.elastic.co/t/ingest-node-accessing-data-in-pipelines-beginner/179091/1 "2019-04-30T13:39:17Z")

</div>

Hey there,  
So the processors in a pipeline have read and write access to documents that pass through the pipeline and i want to access data in a pipeline.  
My Data i want to change comes from metricbeat via http-module.

I was able to access some of the data via script processor

```
{
  "test1" : {
    "description" : "Test_Pipeline",
    "processors" : [
      {
        "script" : {
          "lang" : "painless",
          "source" : " ctx.testfield = ctx.http.Airleader.mm.AE1.value;"
        }
      }
    ]
  }
}

```

I know that array of objects are not well supported, but i want to make sure if it is possible at all.  
So my Data has the following JSON-structure.

```
 "http": {
  "Airleader": {
    "mm": {
      "Consumption": 27,
      "StartBridge": 1,
      "pMax": 6.1,
      "dateien": "0",
      "Time": 55472,
      "SpezLeistung": 0.02782520260175226,
      "sync": "0",
      "AE1": {
        "unit": "bar",
        "label": "(Netzdruck)",
        "value": 5.89
      },
      "modules": [
        {
          "R2": 0,
          "B": 1,
          "E": 0,
          "K": 1,
          "label": "Kompr. 1",
          "L": 1,
          "AE1": 0,
          "M": 1,
          "AE2": 0,
          "AE2Unit": "",
          "LoadTime": "14078:41",
          "AE2Label": "",
          "number": 1,
          "AE1Label": "",
          "S": 0,
          "RunningTime": "14332:54",
          "AE1Unit": "",
          "R1": 1
        },
        {
          "R2": 1,
          "B": 1,
          "E": 0,
          "K": 1,
          "label": "Kompr. 2",
          "L": 0,
          "AE1": 0,
          "M": 0,
          "AE2": 0,
          "AE2Unit": "",
          "AE2Label": "",
          "LoadTime": "14073:45",
          "number": 2,
          "S": 0,
          "AE1Label": "",
          "RunningTime": "14334:19",
          "R1": 1,
          "AE1Unit": ""
        },

```

So i want to access the data under http.Airleader.mm.modules.RunningTime  
But as you can see, there are more modules with the same naming RunningTime.

Is it possible to access these data fields ?  
Thx for any help.

---

<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 28, 2019, 1:43pm UTC](https://discuss.elastic.co/t/ingest-node-accessing-data-in-pipelines-beginner/179091/2 "2019-05-28T13:43:58Z")

</div>

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