# JMX Plugin Attributes (more than metric path)

**URL:** https://discuss.elastic.co/t/jmx-plugin-attributes-more-than-metric-path/245017
**Category:** Logstash
**Created:** [August 14, 2020, 1:27pm UTC](https://discuss.elastic.co/t/jmx-plugin-attributes-more-than-metric-path/245017 "2020-08-14T13:27:57Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Rodrigo\_Maia](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rodrigo_maia/32/45796_2.png) [@Rodrigo\_Maia](https://discuss.elastic.co/u/Rodrigo_Maia)
#### Post date: [August 14, 2020, 1:27pm UTC](https://discuss.elastic.co/t/jmx-plugin-attributes-more-than-metric-path/245017/1 "2020-08-14T13:27:57Z")

</div>

Let's say I have the JMX config for my ActiveMQ:

```
{
        "object_name" : "org.apache.activemq:type=Broker,brokerName=*,destinationName=*,destinationType=Topic",
        "attributes" : ["AverageBlockedTime","AverageEnqueueTime","AverageMessageSize","ConsumerCount","DequeueCount","DispatchCount","EnqueueCount","ExpiredCount","ForwardCount","MemoryLimit","MemoryPercentUsage","MemoryUsagePortion","QueueSize","MaxEnqueueTime","MinEnqueueTime"],
        "object_alias" : "${type}.${brokerName}.${destinationType}.${destinationName}"
    }

```

The output of this in ES is something like:

- metric\_path: Broker.[broker\_name].Topic.[destination\_name].[attribute\_name]

Is there a way to extract more information from this? I mean, can I have the matric\_path name but also the Broker, the queue name, and so on, in a separate variable?

- broker : [broker name]
- destination\_type : [topic]
- destination\_name : [topic name]

I'm trying to create aggregations based on these values.

I have seen some groks in the forum, but create a grok for each type in the JMX for the ActiveMQ would be unfeasible.

---

<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: [September 11, 2020, 1:28pm UTC](https://discuss.elastic.co/t/jmx-plugin-attributes-more-than-metric-path/245017/2 "2020-09-11T13:28:02Z")

</div>

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