# How to split array?

**URL:** https://discuss.elastic.co/t/how-to-split-array/2325
**Category:** Logstash
**Created:** [June 10, 2015, 1:35pm UTC](https://discuss.elastic.co/t/how-to-split-array/2325 "2015-06-10T13:35:16Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Saket\_Kumar](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@Saket\_Kumar](https://discuss.elastic.co/u/Saket_Kumar)
#### Post date: [June 10, 2015, 1:35pm UTC](https://discuss.elastic.co/t/how-to-split-array/2325/1 "2015-06-10T13:35:16Z")

</div>

xpath =\> [  
#"response/data/latency","latency",

```
"/response/data/run/firstView/videoFrames/frame[*]/time/text()","Time_FV",

```

]

Output= "Time\_FV": [0, 800, 1600, 1800, 7100],

Would like split array before feeding this to the ElasticSearch output with each event. Any solution welcome!

---

<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:37am UTC](https://discuss.elastic.co/t/how-to-split-array/2325/2 "2017-07-06T05:37:54Z")

</div>


