I have turned on these two modules in activemq server (version 5.15.9). jolokia is enabled by default on HTTPS port.
i am seeing that, even after clearly specifying on activemq.yml and jolokia.yml the value of host with HTTPS://serverip:8162 , the beat is trying to POST using HTTP protocol.
Error fetching data for metricset activemq.topic: error making http request: Post http://xxxx.com:8162/api/jolokia/%3FignoreErrors=true&canonicalNaming=false: EOF
I just tried this with building Metricbeat from the master branch and I'm unable to reproduce this. I see https being used in the URL. Could you tell us your Metricbeat version please?
metricbeat version 7.6.2
i have updated the error log, up in original post to put more details
2020-06-05T14:36:41.202-0400 INFO module/wrapper.go:252 Error fetching data for metricset jolokia.jmx: HTTP error 404 in : 404 Not Found
Thanks. I was indeed able to reproduce this locally with Metricbeat 7.6.2. However, I also tried with the next release — Metricbeat 7.7.0 — and this problem seems to have been fixed in it. So you might want to give that a try.
We strongly recommend you run the entire Elastic Stack on the same version but I can't think of a reason why Metricbeat 7.7.0 wouldn't work against Elasticsearch 7.6.2.
i upated metricbeat to 7.7.1.
i am not getting the error on activemq.
I am still getting the error on jolokia though.
2020-06-06T12:56:30.682-0400 INFO module/wrapper.go:259 Error fetching data for metricset jolokia.jmx: HTTP error 404 in : 404 Not Found
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.