TypeError: "field" is a required parameter


(Janek Bogucki) #1

Hi,

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

Where do I start figuring this out?


(Joe Fleming) #2

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.


(Tyler Smalley) #3

I might have found something related: 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


(Janek Bogucki) #4

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-*"
        },

(Janek Bogucki) #5
        "_-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"
        },

(Janek Bogucki) #6
        "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-*"
        }
      }
    }
  }
}

(Janek Bogucki) #7

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"
          }
        }
      }
    }
  }
}

(system) #8

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