Hi Team,
I am trying to setup a http metricbeat which monitors a Talend Management Console. My error is:
Blockquote
Apr 02 07:17:55 ip-172-31-28-66 metricbeat[387]: {"log.level":"error","@timestamp":"2024-04-02T07:17:55.638Z","log.origin":{"function":"elastic · GitHub>eats/v7/metricbeat/mb/module.(*metricSetWrapper).fetch","file.name":"module/wrapper.go","file.line":256},"message":"Error fetching data for metricset http.json: json: cannot unmarshal object into Go value of type mapstr.M","service.name":"metricbeat","ecs.version":"1.6.0"}
I am confused since I already have a header in module from a template, is there any documentation on this? Here is the template http module provided by Talend:
# Module: http
# Docs: https://www.elastic.co/guide/en/beats/metricbeat/7.9/metricbeat-module-http.html
- module: http
metricsets:
- json
period: 60s
hosts: ["https://api.${TMC_REGION}.cloud.talend.com"]
namespace: "tmc"
path: "/v1/audit/logs"
ssl.verification_mode: "none"
#body: ""
headers:
Authorization: "Bearer ${TMC_ACCESS_TOKEN}"
method: "GET"
#username: "user"
#password: "secret"
request.enabled: true
response.enabled: true
json.is_array: true
#dedot.enabled: false