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

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.

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