# Cluster stats flat settings

**URL:** <https://discuss.elastic.co/t/cluster-stats-flat-settings/207933>\
**Category:** Elasticsearch\
**Created:** [November 14, 2019, 4:31pm UTC](https://discuss.elastic.co/t/cluster-stats-flat-settings/207933 "2019-11-14T16:31:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![stevesimpson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stevesimpson/32/41437_2.png) [@stevesimpson](https://discuss.elastic.co/u/stevesimpson)\
**Post date:** [November 14, 2019, 4:31pm UTC](https://discuss.elastic.co/t/cluster-stats-flat-settings/207933/1 "2019-11-14T16:31:03Z")

</div>

I'm trying to get cluster stats using the `flat_settings` query parameter. However when I run:

`GET _cluster/stats?flat_settings=true`

I get back the following response:

```
{
  "error": {
    "root_cause": [
      {
        "type": "illegal_argument_exception",
        "reason": "request [/_cluster/stats] contains unrecognized parameter: [flat_settings]"
      }
    ],
    "type": "illegal_argument_exception",
    "reason": "request [/_cluster/stats] contains unrecognized parameter: [flat_settings]"
  },
  "status": 400
}

```

What am I doing wrong here, is this a bug or user error?

---

<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, 2019, 4:31pm UTC](https://discuss.elastic.co/t/cluster-stats-flat-settings/207933/2 "2019-12-12T16:31:09Z")

</div>

Closed on December 12, 2019, 4:31pm UTC

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