# Metricbeat: http server metricset doesn't use namespace config option

**URL:** <https://discuss.elastic.co/t/metricbeat-http-server-metricset-doesnt-use-namespace-config-option/156669>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [November 14, 2018, 1:24pm UTC](https://discuss.elastic.co/t/metricbeat-http-server-metricset-doesnt-use-namespace-config-option/156669 "2018-11-14T13:24:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jun\_Zhang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jun_zhang/32/25863_2.png) [@Jun\_Zhang](https://discuss.elastic.co/u/Jun_Zhang)\
**Post date:** [November 14, 2018, 1:24pm UTC](https://discuss.elastic.co/t/metricbeat-http-server-metricset-doesnt-use-namespace-config-option/156669/1 "2018-11-14T13:24:10Z")

</div>

Metricbeat: 6.4.3

http module configuration:

```
- module: http
  metricsets:
  - server
  host: "localhost"
  port: "800"
  paths:
  - path: "/foo"
    namespace: "foo"

```

$ curl -H "Content-Type: application/json" [http://127.0.0.1:800/foo/](http://127.0.0.1:800/foo/) -d '{"test4": true}'

But, the posted json still under http.server field, which should be under http.foo:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/4/f49b886d521ccc77e92b9d8c3df733005337632f.png)

I think the PR [#7890](https://github.com/elastic/beats/pull/7890) should fix this bug, but doesn't backport to 6.x.

---

<div class="post-metadata">

**Author:** ![jsoriano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsoriano/32/27920_2.png) [@jsoriano](https://discuss.elastic.co/u/jsoriano)\
**Post date:** [November 14, 2018, 1:51pm UTC](https://discuss.elastic.co/t/metricbeat-http-server-metricset-doesnt-use-namespace-config-option/156669/2 "2018-11-14T13:51:35Z")

</div>

I think you are right and we should backport #7890, doing it.

Thanks for reporting!

---

<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:** [December 12, 2018, 1:51pm UTC](https://discuss.elastic.co/t/metricbeat-http-server-metricset-doesnt-use-namespace-config-option/156669/3 "2018-12-12T13:51:37Z")

</div>

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