# Array: Extract the values and add the values

**URL:** https://discuss.elastic.co/t/array-extract-the-values-and-add-the-values/158413
**Category:** Logstash
**Created:** [November 27, 2018, 8:32pm UTC](https://discuss.elastic.co/t/array-extract-the-values-and-add-the-values/158413 "2018-11-27T20:32:50Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![rcuevas](https://avatars.discourse-cdn.com/v4/letter/r/e68b1a/32.png) [@rcuevas](https://discuss.elastic.co/u/rcuevas)
#### Post date: [November 27, 2018, 8:32pm UTC](https://discuss.elastic.co/t/array-extract-the-values-and-add-the-values/158413/1 "2018-11-27T20:32:50Z")

</div>

Hi Community,

I have this output:

{  
"timeseriesId" =\> "com.dynatrace.builtin:servicemethod.responsetime",  
"dimensions" =\> [  
[0] "SERVICE\_METHOD"  
],  
"@timestamp" =\> 2018-11-27T20:27:01.309Z,  
"types" =\> ,  
"displayName" =\> "Method response time",  
"servicio" =\> "login",  
"dataResult" =\> {  
"dataPoints" =\> {  
"SERVICE\_METHOD-A0531FB2DBDE389A" =\> [  
[0] [  
[0] 1543350120000,  
[1] **25832.798521256933**  
]  
],  
"SERVICE\_METHOD-828A8332FE723468" =\> [  
[0] [  
[0] 1543350120000,  
[1] **58236.78571428572**  
]  
]  
},  
"resolutionInMillisUTC" =\> 300000,  
"timeseriesId" =\> "com.dynatrace.builtin:servicemethod.responsetime",  
"aggregationType" =\> "AVG",  
"unit" =\> "MicroSecond (µs)",  
"entities" =\> {  
"SERVICE\_METHOD-A0531FB2DBDE389A" =\> "/oam/server/obrareq.cgi",  
"SERVICE\_METHOD-828A8332FE723468" =\> "/oam/server/auth\_cred\_submit"  
}  
},  
"aggregationTypes" =\> [  
[0] "AVG",  
[1] "SUM",  
[2] "MIN",  
[3] "MAX",  
[4] "MEDIAN",  
[5] "PERCENTILE"  
],  
"filter" =\> "BUILTIN",  
"site" =\> "vp1",  
"detailedSource" =\> "Services",  
"@version" =\> "1",  
"unit" =\> "MicroSecond (µs)"  
}

I want to extract the values ​​marked in bold, leave them in new fields and in a new field add the values.

Someone has some idea

Regards.

---

<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: [December 25, 2018, 8:32pm UTC](https://discuss.elastic.co/t/array-extract-the-values-and-add-the-values/158413/2 "2018-12-25T20:32:52Z")

</div>

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