# Jolokia Module Exec Operation

**URL:** <https://discuss.elastic.co/t/jolokia-module-exec-operation/229139>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [April 21, 2020, 10:49pm UTC](https://discuss.elastic.co/t/jolokia-module-exec-operation/229139 "2020-04-21T22:49:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jason\_0](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jason_0/32/66801_2.png) [@jason\_0](https://discuss.elastic.co/u/jason_0)\
**Post date:** [April 21, 2020, 10:49pm UTC](https://discuss.elastic.co/t/jolokia-module-exec-operation/229139/1 "2020-04-21T22:49:01Z")

</div>

Hi Team,

Our developers are using Jolokia to perform various actions. One of which is an _exec_ operation that returns some application telemetry we want to ingest into elasticsearch via metricbeat Jolokia module. The URL path when doing this call via the browser is

> host:port/jolokia/exec/bean:name=buildinfo/getAppInfo

From what I can gather after looking at the code on GitHub, it looks like the operation type is hardcoded to _read_, here - [https://github.com/elastic/beats/blob/3b994389d6ce8968141a18e539efc6e5ba462f0d/metricbeat/module/jolokia/jmx/config.go#L448](https://github.com/elastic/beats/blob/3b994389d6ce8968141a18e539efc6e5ba462f0d/metricbeat/module/jolokia/jmx/config.go#L448)

Is it possible to make this configurable such that we could retrieve the response data or is my best path forward to use the HTTP module?

---

<div class="post-metadata">

**Author:** ![MarianaD](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marianad/32/42687_2.png) [@MarianaD](https://discuss.elastic.co/u/MarianaD)\
**Post date:** [April 22, 2020, 1:15pm UTC](https://discuss.elastic.co/t/jolokia-module-exec-operation/229139/2 "2020-04-22T13:15:08Z")

</div>

hi @jason_0,

I suggest adding an enhancement issue in the beats repo ([https://github.com/elastic/beats](https://github.com/elastic/beats)) regarding having a configurable operation type. Meanwhile, you could try the `http` module as a workaround.

---

<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:** [May 20, 2020, 1:15pm UTC](https://discuss.elastic.co/t/jolokia-module-exec-operation/229139/3 "2020-05-20T13:15:09Z")

</div>

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