Add Index 7.1.0 "index.mapper.dynamic was removed after version 6.0.0"

Hi,

I have recently installed ElasticSearch and Kibana 7.1.0 and I'm trying to use the Document API to submit a new Index to ElasticSearch, I'm using the same method and json file as we used for ElasticSearch v6.5.4 however whenever I PUT my request I get;

{
    "error": {
        "root_cause": [
            {
                "type": "illegal_argument_exception",
                "reason": "Setting index.mapper.dynamic was removed after version 6.0.0"
            }
        ],
        "type": "illegal_argument_exception",
        "reason": "Setting index.mapper.dynamic was removed after version 6.0.0"
    },
    "status": 400
}

The settings in JSON read as;

"settings": {
        "index": {
            "number_of_shards": "5",
            "mapper": {
                "dynamic": "true"
            },
            "number_of_replicas": "1"
        }
    }

Any help would be appreciated. Thanks.

Isn't that obvious?
Just rename "dynamic": "true" from your settings.

I've already tried this, however whenever I type false I get the same response, when I use strict as detailed in _settings, I get a response;

{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "unknown setting [index.mapper.strict] please check that any required plugins are installed, or check the breaking changes documentation for removed settings"
}
],
"type": "illegal_argument_exception",
"reason": "unknown setting [index.mapper.strict] please check that any required plugins are installed, or check the breaking changes documentation for removed settings"
},
"status": 400
}

And when I remove the mapper altogether;

{
"error": {
"root_cause": [
{
"type": "mapper_parsing_exception",
"reason": "Root mapping definition has unsupported parameters: [logEvent : {properties={logType={type=text, fields={keyword={ignore_above=256, type=keyword}}}, levelOrdinal={type=long}, fileName={type=text, fields={keyword={ignore_above=256, type=keyword}}}, totalExecutionTime={type=text, fields={keyword={ignore_above=256, type=keyword}}}, DateTimeStarted={format=MM/dd/yyyy HH:mm:ss, type=date}, processVersion={type=text, fields={keyword={ignore_above=256, type=keyword}}}, DateTimeRaised={format=MM/dd/yyyy HH:mm:ss, type=date}, activityInfo={type=text, fields={keyword={ignore_above=256, type=keyword}}}, machineName={type=text, fields={keyword={ignore_above=256, type=keyword}}}, rawMessage={type=text, fields={keyword={ignore_above=256, type=keyword}}}, Outcome2={type=text, fields={keyword={ignore_above=256, type=keyword}}}, windowsIdentity={type=text, fields={keyword={ignore_above=256, type=keyword}}}, processName={type=text, fields={keyword={ignore_above=256, type=keyword}}}, DateTimeEnded={format=MM/dd/yyyy HH:mm:ss, type=date}, fingerprint={type=text, fields={keyword={ignore_above=256, type=keyword}}}, totalExecutionTimeInSeconds={type=long}, level={type=text, fields={keyword={ignore_above=256, type=keyword}}}, robotName={type=text, fields={keyword={ignore_above=256, type=keyword}}}, Duration={type=long}, message={type=text, fields={keyword={ignore_above=256, type=keyword}}}, Outcome1={type=text, fields={keyword={ignore_above=256, type=keyword}}}, timeStamp={type=date}, jobId={type=text, fields={keyword={ignore_above=256, type=keyword}}}, @timestamp={type=date}, machineId={type=long}, AutomationType={type=text, fields={keyword={ignore_above=256, type=keyword}}}, WaitTime={type=long}}}]"
}
],

Apologies if this is clear but I am not following.

Resolved; was missing /_doc/1 in URL.

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