# JMX CompositeDataSupport and Array

**URL:** <https://discuss.elastic.co/t/jmx-compositedatasupport-and-array/629>\
**Category:** Logstash\
**Created:** [May 13, 2015, 2:48pm UTC](https://discuss.elastic.co/t/jmx-compositedatasupport-and-array/629 "2015-05-13T14:48:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![michaelT](https://avatars.discourse-cdn.com/v4/letter/m/91b2a8/32.png) [@michaelT](https://discuss.elastic.co/u/michaelT)\
**Post date:** [May 13, 2015, 2:48pm UTC](https://discuss.elastic.co/t/jmx-compositedatasupport-and-array/629/1 "2015-05-13T14:48:03Z")

</div>

Hi,

Using the logstash jmx plugin, I'm retrieving a **CompositeDataSupport** Object which is then pushed to Elasticsearch. The problem is that the value pushed is not an array converted as a String but more something which looks like the address of the object in memory.

I was wondering how will it be possible to map this as an ArrayType in ElasticSearch.

_Details:_  
This is the value of the **metric\_value\_string** field which ends up in the repository

```
[J@4b043fe8

```

And the following text describes the structure of the objects

```
javax.management.openmbean.CompositeDataSupport(
compositeType=javax.management.openmbean.CompositeType(
name=SESSION_COUNT,items=((
itemName=per hour, itemType=javax.management.openmbean.ArrayType(name=[J,dimension=1,elementType=javax.management.openmbean.SimpleType(name=java.lang.Long),primitiveArray=true)),
(itemName=per minute, itemType=javax.management.openmbean.ArrayType(name=[J,dimension=1,elementType=javax.management.openmbean.SimpleType(name=java.lang.Long),primitiveArray=true)),
(itemName=per second, itemType=javax.management.openmbean.ArrayType(name=[J,dimension=1,elementType=javax.management.openmbean.SimpleType(name=java.lang.Long),primitiveArray=true)),
(itemName=per week, itemType=javax.management.openmbean.ArrayType(name=[J,dimension=1,elementType=javax.management.openmbean.SimpleType(name=java.lang.Long),primitiveArray=true)))),contents={per hour=[0, ... , 111], per minute=[111, ... , 111], per second=[111, ..., 111], per week=[0, ... , 0]})"
```

---

<div class="post-metadata">

**Author:** ![wiibaa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wiibaa/32/44931_2.png) [@wiibaa](https://discuss.elastic.co/u/wiibaa)\
**Post date:** [May 14, 2015, 12:33pm UTC](https://discuss.elastic.co/t/jmx-compositedatasupport-and-array/629/2 "2015-05-14T12:33:14Z")

</div>

Sadly, this is currently not supported in the jmx input, I registered [https://github.com/logstash-plugins/logstash-input-jmx/issues/8](https://github.com/logstash-plugins/logstash-input-jmx/issues/8) to keep track of adding support for these missing additional types.  
Thanks.

---

<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:39am UTC](https://discuss.elastic.co/t/jmx-compositedatasupport-and-array/629/3 "2017-07-06T05:39:53Z")

</div>

Closed on July 6, 2017, 5:39am UTC


