# TypeError: "field" is a required parameter

**URL:** <https://discuss.elastic.co/t/typeerror-field-is-a-required-parameter/84255>\
**Category:** Kibana\
**Created:** [May 2, 2017, 11:59am UTC](https://discuss.elastic.co/t/typeerror-field-is-a-required-parameter/84255 "2017-05-02T11:59:02Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Janek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/janek/32/17640_2.png) [@Janek](https://discuss.elastic.co/u/Janek)\
**Post date:** [May 2, 2017, 11:59am UTC](https://discuss.elastic.co/t/typeerror-field-is-a-required-parameter/84255/1 "2017-05-02T11:59:02Z")

</div>

Hi,

After discovering fields in my Elasticsearch cloud trial a few days ago I logged in today and saw this,

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

Where do I start figuring this out?

---

<div class="post-metadata">

**Author:** ![Joe\_Fleming](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joe_fleming/32/3561_2.png) [@Joe\_Fleming](https://discuss.elastic.co/u/Joe_Fleming)\
**Post date:** [May 3, 2017, 5:59pm UTC](https://discuss.elastic.co/t/typeerror-field-is-a-required-parameter/84255/2 "2017-05-03T17:59:58Z")

</div>

Hrm, I've never seen that error before, and I can't find anything in the issues on Github.

What version of the stack are you running in Cloud? And do you have data in whatever time range you're looking at? That shouldn't be a requirement, but maybe it'll help narrow down the cause.

---

<div class="post-metadata">

**Author:** ![tylersmalley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylersmalley/32/8833_2.png) [@tylersmalley](https://discuss.elastic.co/u/tylersmalley)\
**Post date:** [May 3, 2017, 6:06pm UTC](https://discuss.elastic.co/t/typeerror-field-is-a-required-parameter/84255/3 "2017-05-03T18:06:06Z")

</div>

I might have found something related: [https://github.com/elastic/kibana/issues/9571](https://github.com/elastic/kibana/issues/9571)

For the index pattern which you are on, can you provide the output of this:

`GET <index-pattern>/_field_stats?fields=*&level=cluster&allow_no_indices=false`

and

`GET <index-pattern>/_mapping`

---

<div class="post-metadata">

**Author:** ![Janek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/janek/32/17640_2.png) [@Janek](https://discuss.elastic.co/u/Janek)\
**Post date:** [May 4, 2017, 9:35am UTC](https://discuss.elastic.co/t/typeerror-field-is-a-required-parameter/84255/4 "2017-05-04T09:35:55Z")

</div>

> [@tsmalley](#):
>
> GET \<index-pattern\>/\_field\_stats?fields=\*&level=cluster&allow\_no\_indices=false

Here is an anonymized version of the response to the above request. Below that is the anonymized mapping. Without the names this is possibly of no use but I appreciate the offer of help.

```
{
  "_shards": {
    "total": 5,
    "successful": 5,
    "failed": 0
  },
  "indices": {
    "_all": {
      "fields": {
        "g-xxx": {
          "type": "string",
          "max_doc": 290000,
          "doc_count": 289977,
          "density": 99,
          "sum_doc_freq": 555649,
          "sum_total_term_freq": -1,
          "searchable": true,
          "aggregatable": true,
          "min_value": "D-*",
          "max_value": "T-*"
        },
        "t-xxx": {
          "type": "string",
          "max_doc": 290000,
          "doc_count": 290000,
          "density": 100,
          "sum_doc_freq": 290000,
          "sum_total_term_freq": -1,
          "searchable": true,
          "aggregatable": true,
          "min_value": "P-*",
          "max_value": "T-*"
        },
        "l-xxx": {
          "type": "string",
          "max_doc": 290000,
          "doc_count": 290000,
          "density": 100,
          "sum_doc_freq": 290000,
          "sum_total_term_freq": -1,
          "searchable": true,
          "aggregatable": true,
          "min_value": "n-*",
          "max_value": "n-*"
        },
        "s-xxx": {
          "type": "string",
          "max_doc": 290000,
          "doc_count": 290000,
          "density": 100,
          "sum_doc_freq": 290000,
          "sum_total_term_freq": -1,
          "searchable": true,
          "aggregatable": true,
          "min_value": "R-*",
          "max_value": "E-*"
        },
        "i-xxx": {
          "type": "string",
          "max_doc": 290000,
          "doc_count": 289985,
          "density": 99,
          "sum_doc_freq": 1506401,
          "sum_total_term_freq": -1,
          "searchable": true,
          "aggregatable": true,
          "min_value": "V-*",
          "max_value": "U-*"
        },
        "h-xxx": {
          "type": "string",
          "max_doc": 290000,
          "doc_count": 290000,
          "density": 100,
          "sum_doc_freq": 290000,
          "sum_total_term_freq": -1,
          "searchable": true,
          "aggregatable": true,
          "min_value": "N-*",
          "max_value": "Y-*"
        },
        "t-xxx": {
          "type": "string",
          "max_doc": 290000,
          "doc_count": 290000,
          "density": 100,
          "sum_doc_freq": 2739044,
          "sum_total_term_freq": 2784040,
          "searchable": true,
          "aggregatable": false,
          "min_value": "0-*",
          "max_value": "d-*"
        },
        "t-xxx": {
          "type": "string",
          "max_doc": 290000,
          "doc_count": 289983,
          "density": 99,
          "sum_doc_freq": 449232,
          "sum_total_term_freq": -1,
          "searchable": true,
          "aggregatable": true,
          "min_value": "Z-*",
          "max_value": "T-*"
        },
        "_-xxx": {
          "type": "string",
          "max_doc": 290000,
          "doc_count": 290000,
          "density": 100,
          "sum_doc_freq": 74752631,
          "sum_total_term_freq": 140680150,
          "searchable": true,
          "aggregatable": false,
          "min_value": "0-*",
          "max_value": "a-*"
        },
        "c-xxx": {
          "type": "string",
          "max_doc": 290000,
          "doc_count": 290000,
          "density": 100,
          "sum_doc_freq": 49582616,
          "sum_total_term_freq": 98135492,
          "searchable": true,
          "aggregatable": false,
          "min_value": "0-*",
          "max_value": "a-*"
        },
        "a-xxx": {
          "type": "string",
          "max_doc": 290000,
          "doc_count": 290000,
          "density": 100,
          "sum_doc_freq": 290000,
          "sum_total_term_freq": -1,
          "searchable": true,
          "aggregatable": true,
          "min_value": "9-*",
          "max_value": "6-*"
        },
        "u-xxx": {
          "type": "integer",
          "max_doc": 290000,
          "doc_count": 290000,
          "density": 100,
          "sum_doc_freq": -1,
          "sum_total_term_freq": 290000,
          "searchable": true,
          "aggregatable": true,
          "min_value": 0,
          "min_value_as_string": "0",
          "max_value": 1,
          "max_value_as_string": "1"
        },
        "p-xxx": {
          "type": "string",
          "max_doc": 290000,
          "doc_count": 289804,
          "density": 99,
          "sum_doc_freq": 2272923,
          "sum_total_term_freq": -1,
          "searchable": true,
          "aggregatable": true,
          "min_value": "O-*",
          "max_value": "I-*"
        },
        "s-xxx": {
          "type": "string",
          "max_doc": 290000,
          "doc_count": 289983,
          "density": 99,
          "sum_doc_freq": 474396,
          "sum_total_term_freq": -1,
          "searchable": true,
          "aggregatable": true,
          "min_value": "Z-*",
          "max_value": "T-*"
        },

```

---

<div class="post-metadata">

**Author:** ![Janek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/janek/32/17640_2.png) [@Janek](https://discuss.elastic.co/u/Janek)\
**Post date:** [May 4, 2017, 9:36am UTC](https://discuss.elastic.co/t/typeerror-field-is-a-required-parameter/84255/5 "2017-05-04T09:36:24Z")

</div>

```
        "_-xxx": {
          "type": "string",
          "max_doc": 290000,
          "doc_count": 0,
          "density": 0,
          "sum_doc_freq": -1,
          "sum_total_term_freq": -1,
          "searchable": false,
          "aggregatable": false
        },
        "r-xxx": {
          "type": "string",
          "max_doc": 290000,
          "doc_count": 290000,
          "density": 100,
          "sum_doc_freq": 290000,
          "sum_total_term_freq": -1,
          "searchable": true,
          "aggregatable": true,
          "min_value": "N-*",
          "max_value": "N-*"
        },
        "s-xxx": {
          "type": "integer",
          "max_doc": 290000,
          "doc_count": 290000,
          "density": 100,
          "sum_doc_freq": -1,
          "sum_total_term_freq": 290000,
          "searchable": true,
          "aggregatable": true,
          "min_value": 2,
          "min_value_as_string": "2",
          "max_value": 19075,
          "max_value_as_string": "19075"
        },
        "w-xxx": {
          "type": "string",
          "max_doc": 290000,
          "doc_count": 289428,
          "density": 99,
          "sum_doc_freq": 369570,
          "sum_total_term_freq": -1,
          "searchable": true,
          "aggregatable": true,
          "min_value": "S-*",
          "max_value": "W-*"
        },
        "s-xxx": {
          "type": "string",
          "max_doc": 290000,
          "doc_count": 289983,
          "density": 99,
          "sum_doc_freq": 451728,
          "sum_total_term_freq": -1,
          "searchable": true,
          "aggregatable": true,
          "min_value": "8-*",
          "max_value": "1-*"
        },
        "i-xxx": {
          "type": "date",
          "max_doc": 290000,
          "doc_count": 290000,
          "density": 100,
          "sum_doc_freq": -1,
          "sum_total_term_freq": 290000,
          "searchable": true,
          "aggregatable": true,
          "min_value": 1493007691975,
          "min_value_as_string": "2017-04-24T04:21:31.975+0000",
          "max_value": 1493042607998,
          "max_value_as_string": "2017-04-24T14:03:27.998+0000"
        },
        "s-xxx": {
          "type": "string",
          "max_doc": 290000,
          "doc_count": 290000,
          "density": 100,
          "sum_doc_freq": 6477105,
          "sum_total_term_freq": -1,
          "searchable": true,
          "aggregatable": true,
          "min_value": "K-*",
          "max_value": "C-*"
        },
        "s-xxx": {
          "type": "string",
          "max_doc": 290000,
          "doc_count": 290000,
          "density": 100,
          "sum_doc_freq": 290000,
          "sum_total_term_freq": -1,
          "searchable": true,
          "aggregatable": true,
          "min_value": "3-*",
          "max_value": "9-*"
        },
        "_-xxx": {
          "type": "string",
          "max_doc": 290000,
          "doc_count": 290000,
          "density": 100,
          "sum_doc_freq": 290000,
          "sum_total_term_freq": -1,
          "searchable": true,
          "aggregatable": true,
          "min_value": "s-*",
          "max_value": "s-*"
        },
        "g-xxx": {
          "type": "string",
          "max_doc": 290000,
          "doc_count": 289999,
          "density": 99,
          "sum_doc_freq": 1376268,
          "sum_total_term_freq": -1,
          "searchable": true,
          "aggregatable": true,
          "min_value": "D-*",
          "max_value": "R-*"
        },
        "d-xxx": {
          "type": "date",
          "max_doc": 290000,
          "doc_count": 290000,
          "density": 100,
          "sum_doc_freq": -1,
          "sum_total_term_freq": 290000,
          "searchable": true,
          "aggregatable": true,
          "min_value": 1447200000000,
          "min_value_as_string": "20151111",
          "max_value": 1455235200000,
          "max_value_as_string": "20160212"
        },
        "s-xxx": {
          "type": "string",
          "max_doc": 290000,
          "doc_count": 289994,
          "density": 99,
          "sum_doc_freq": 585665,
          "sum_total_term_freq": -1,
          "searchable": true,
          "aggregatable": true,
          "min_value": "T-*",
          "max_value": "O-*"
        },
        "t-xxx": {
          "type": "string",
          "max_doc": 290000,
          "doc_count": 289999,
          "density": 99,
          "sum_doc_freq": 2481986,
          "sum_total_term_freq": 2516805,
          "searchable": true,
          "aggregatable": false,
          "min_value": "0-*",
          "max_value": "d-*"
        },
        "s-xxx": {
          "type": "date",
          "max_doc": 290000,
          "doc_count": 290000,
          "density": 100,
          "sum_doc_freq": -1,
          "sum_total_term_freq": 290000,
          "searchable": true,
          "aggregatable": true,
          "min_value": 1493007596822,
          "min_value_as_string": "2017-04-24T04:19:56.822+0000",
          "max_value": 1493042468584,
          "max_value_as_string": "2017-04-24T14:01:08.584+0000"
        },
```

---

<div class="post-metadata">

**Author:** ![Janek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/janek/32/17640_2.png) [@Janek](https://discuss.elastic.co/u/Janek)\
**Post date:** [May 4, 2017, 9:36am UTC](https://discuss.elastic.co/t/typeerror-field-is-a-required-parameter/84255/6 "2017-05-04T09:36:43Z")

</div>

```
        "s-xxx": {
          "type": "string",
          "max_doc": 290000,
          "doc_count": 290000,
          "density": 100,
          "sum_doc_freq": 290000,
          "sum_total_term_freq": -1,
          "searchable": true,
          "aggregatable": true,
          "min_value": "y-*",
          "max_value": "y-*"
        },
        "s-xxx": {
          "type": "integer",
          "max_doc": 290000,
          "doc_count": 290000,
          "density": 100,
          "sum_doc_freq": -1,
          "sum_total_term_freq": 290000,
          "searchable": true,
          "aggregatable": true,
          "min_value": 1066,
          "min_value_as_string": "1066",
          "max_value": 28647,
          "max_value_as_string": "28647"
        },
        "s-xxx": {
          "type": "string",
          "max_doc": 290000,
          "doc_count": 290000,
          "density": 100,
          "sum_doc_freq": 290000,
          "sum_total_term_freq": -1,
          "searchable": true,
          "aggregatable": true,
          "min_value": "x-*",
          "max_value": "x-*"
        },
        "_-xxx": {
          "type": "string",
          "max_doc": 290000,
          "doc_count": 290000,
          "density": 100,
          "sum_doc_freq": 12759119,
          "sum_total_term_freq": -1,
          "searchable": true,
          "aggregatable": false,
          "min_value": "l-*",
          "max_value": "s-*"
        },
        "d-xxx": {
          "type": "date",
          "max_doc": 290000,
          "doc_count": 290000,
          "density": 100,
          "sum_doc_freq": -1,
          "sum_total_term_freq": 290000,
          "searchable": true,
          "aggregatable": true,
          "min_value": 1447264408655,
          "min_value_as_string": "2015-11-11T17:53:28.655+0000",
          "max_value": 1455318750916,
          "max_value_as_string": "2016-02-12T23:12:30.916+0000"
        },
        "i-xxx": {
          "type": "string",
          "max_doc": 290000,
          "doc_count": 289983,
          "density": 99,
          "sum_doc_freq": 421346,
          "sum_total_term_freq": -1,
          "searchable": true,
          "aggregatable": true,
          "min_value": "8-*",
          "max_value": "1-*"
        },
        "_-xxx": {
          "type": "string",
          "max_doc": 290000,
          "doc_count": 0,
          "density": 0,
          "sum_doc_freq": -1,
          "sum_total_term_freq": -1,
          "searchable": false,
          "aggregatable": false
        },
        "m-xxx": {
          "type": "string",
          "max_doc": 290000,
          "doc_count": 290000,
          "density": 100,
          "sum_doc_freq": 686091,
          "sum_total_term_freq": -1,
          "searchable": true,
          "aggregatable": true,
          "min_value": "D-*",
          "max_value": "D-*"
        },
        "_-xxx": {
          "type": "string",
          "max_doc": 290000,
          "doc_count": 290000,
          "density": 100,
          "sum_doc_freq": 290000,
          "sum_total_term_freq": -1,
          "searchable": true,
          "aggregatable": true,
          "min_value": "7-*",
          "max_value": "G-*"
        },
        "p-xxx": {
          "type": "string",
          "max_doc": 290000,
          "doc_count": 290000,
          "density": 100,
          "sum_doc_freq": 290000,
          "sum_total_term_freq": -1,
          "searchable": true,
          "aggregatable": true,
          "min_value": "-*",
          "max_value": "S-*"
        },
        "d-xxx": {
          "type": "string",
          "max_doc": 290000,
          "doc_count": 290000,
          "density": 100,
          "sum_doc_freq": 290000,
          "sum_total_term_freq": -1,
          "searchable": true,
          "aggregatable": true,
          "min_value": "N-*",
          "max_value": "N-*"
        },
        "m-xxx": {
          "type": "string",
          "max_doc": 290000,
          "doc_count": 290000,
          "density": 100,
          "sum_doc_freq": 290000,
          "sum_total_term_freq": -1,
          "searchable": true,
          "aggregatable": true,
          "min_value": "7-*",
          "max_value": "d-*"
        }
      }
    }
  }
}
```

---

<div class="post-metadata">

**Author:** ![Janek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/janek/32/17640_2.png) [@Janek](https://discuss.elastic.co/u/Janek)\
**Post date:** [May 4, 2017, 9:36am UTC](https://discuss.elastic.co/t/typeerror-field-is-a-required-parameter/84255/7 "2017-05-04T09:36:52Z")

</div>

Anonymized mapping,

```
{
  "d-ffff": {
    "m-ffff": {
      "n-ffff": {
        "p-ffff": {
          "a-ffff": {
            "type": "keyword"
          },
          "c-ffff": {
            "type": "text",
            "index_options": "offsets",
            "analyzer": "standard"
          },
          "d-ffff": {
            "type": "date",
            "format": "yyyy-MM-dd'T'HH:mm:ss.SSSZ || yyyy-MM-dd'T'HH:mm:ssZ"
          },
          "d-ffff": {
            "type": "keyword"
          },
          "d-ffff": {
            "type": "date",
            "format": "yyyyMMdd"
          },
          "g-ffff": {
            "type": "keyword"
          },
          "g-ffff": {
            "type": "keyword"
          },
          "h-ffff": {
            "type": "keyword"
          },
          "i-ffff": {
            "type": "date",
            "format": "yyyy-MM-dd'T'HH:mm:ss.SSSZ || yyyy-MM-dd'T'HH:mm:ssZ"
          },
          "i-ffff": {
            "type": "keyword"
          },
          "i-ffff": {
            "type": "keyword"
          },
          "l-ffff": {
            "type": "keyword"
          },
          "m-ffff": {
            "type": "keyword"
          },
          "m-ffff": {
            "type": "keyword"
          },
          "p-ffff": {
            "type": "keyword"
          },
          "p-ffff": {
            "type": "keyword"
          },
          "r-ffff": {
            "type": "keyword"
          },
          "s-ffff": {
            "type": "integer"
          },
          "s-ffff": {
            "type": "keyword"
          },
          "s-ffff": {
            "type": "keyword"
          },
          "s-ffff": {
            "type": "long"
          },
          "s-ffff": {
            "type": "keyword"
          },
          "s-ffff": {
            "type": "keyword"
          },
          "s-ffff": {
            "type": "keyword"
          },
          "s-ffff": {
            "p-ffff": {
              "c-ffff": {
                "p-ffff": {
                  "c-ffff": {
                    "type": "date",
                    "format": "yyyy-MM-dd'T'HH:mm:ss.SSSZ || yyyy-MM-dd'T'HH:mm:ssZ"
                  }
                }
              },
              "d-ffff": {
                "p-ffff": {
                  "d-ffff": {
                    "type": "keyword"
                  }
                }
              },
              "s-ffff": {
                "p-ffff": {
                  "s-ffff": {
                    "type": "keyword"
                  }
                }
              },
              "s-ffff": {
                "p-ffff": {
                  "s-ffff": {
                    "type": "keyword"
                  }
                }
              }
            }
          },
          "t-ffff": {
            "type": "keyword"
          },
          "t-ffff": {
            "type": "keyword"
          },
          "t-ffff": {
            "type": "text",
            "index_options": "offsets",
            "f-ffff": {
              "e-ffff": {
                "type": "text",
                "index_options": "offsets",
                "analyzer": "english"
              }
            },
            "analyzer": "standard"
          },
          "t-ffff": {
            "type": "date",
            "ignore_malformed": true,
            "format": "yyyyMMdd'T'HHmmss.SSSZ"
          },
          "u-ffff": {
            "type": "integer"
          },
          "w-ffff": {
            "type": "keyword"
          }
        }
      }
    }
  }
}
```

---

<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:** [June 1, 2017, 9:46am UTC](https://discuss.elastic.co/t/typeerror-field-is-a-required-parameter/84255/8 "2017-06-01T09:46:36Z")

</div>

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