# Unmarshaling JSON for metricbeat (Talend Management Console)

**URL:** <https://discuss.elastic.co/t/unmarshaling-json-for-metricbeat-talend-management-console/356596>\
**Category:** Beats\
**Tags:** beats-development, metricbeat\
**Created:** [April 2, 2024, 7:42am UTC](https://discuss.elastic.co/t/unmarshaling-json-for-metricbeat-talend-management-console/356596 "2024-04-02T07:42:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![h.d.intodata](https://avatars.discourse-cdn.com/v4/letter/h/c67d28/32.png) [@h.d.intodata](https://discuss.elastic.co/u/h.d.intodata)\
**Post date:** [April 2, 2024, 7:42am UTC](https://discuss.elastic.co/t/unmarshaling-json-for-metricbeat-talend-management-console/356596/1 "2024-04-02T07:42:49Z")

</div>

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](http://github.com/elastic/)\>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:

```auto
# 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

```

---

<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:** [April 30, 2024, 9:42am UTC](https://discuss.elastic.co/t/unmarshaling-json-for-metricbeat-talend-management-console/356596/2 "2024-04-30T09:42:54Z")

</div>

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