# Rollup Job when one of the Terms field is array

**URL:** https://discuss.elastic.co/t/rollup-job-when-one-of-the-terms-field-is-array/236651
**Category:** Kibana
**Created:** [June 11, 2020, 8:45am UTC](https://discuss.elastic.co/t/rollup-job-when-one-of-the-terms-field-is-array/236651 "2020-06-11T08:45:51Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![vaibhavseth](https://avatars.discourse-cdn.com/v4/letter/v/8baadc/32.png) [@vaibhavseth](https://discuss.elastic.co/u/vaibhavseth)
#### Post date: [June 11, 2020, 8:45am UTC](https://discuss.elastic.co/t/rollup-job-when-one-of-the-terms-field-is-array/236651/1 "2020-06-11T08:45:51Z")

</div>

I am trying to create a RollUp job from Kibana. In the Terms field where I have given multiple fields, in which one of the fields is of an array type (String type in Index). How RollUp job will aggregate data on the array field?

Sample data:

```auto
{
    "requestTimestamp": 1591863551950,
    "osId": "iOS",
    "CountryOp": 1,
    "countryId": "gbr",
    "@timestamp": "2020-06-11T08:19:11.950Z",
    "OsOp": 1,
"strategyIds": [
      "8140_Test",
      "8639_autocheck"
    ]
}

```

Group by on: strategyIds, countryId  
Aggregrate on: CountryOp, OsOp

---

<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 9, 2020, 8:47am UTC](https://discuss.elastic.co/t/rollup-job-when-one-of-the-terms-field-is-array/236651/2 "2020-07-09T08:47:28Z")

</div>

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