Jolokia Module Exec Operation

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

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?

hi @jason_0,

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

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