Error in creating kibana index pattern through script

Hi,
I am trying to create Kibana index pattern through python script. I am getting following error:

{u'status': 400, u'error': {u'root_cause': [{u'reason': u'mapping set to strict, dynamic introduction of [title] within [doc] is not allowed', u'type': u'strict_dynamic_mapping_exception'}], u'type': u'strict_dynamic_mapping_exception', u'reason': u'mapping set to strict, dynamic introduction of [title] within [doc] is not allowed'}}

url to create index is : http://localhost:9200/.kibana/doc/index-pattern:cloudtrail-logs

elasticsearch mapping json is:

{
"cloudtrail-logs":{
"mappings": {
"cloudtrail-logs": {
"dynamic" : true,
"properties": {
"eventVersion": {
"type": "keyword"
},
"userIdentity": {
"dynamic":true,
"properties": {
"type": {
"type": "keyword"
},
"principalId": {
"type": "keyword"
},
"arn": {
"type": "keyword",
"index": true
},
"accountId": {
"type": "keyword"
},
"accessKeyId": {
"type": "keyword"
},
"sessionContext": {
"dynamic":true,
"properties": {
"attributes": {
"dynamic":true,
"properties": {
"mfaAuthenticated": {
"type": "keyword"
},
"creationDate": {
"type": "date"
}
}
}
}
},
"sessionIssuer": {
"dynamic":true,
"properties": {
"type": {
"type": "keyword"
},
"principalId": {
"type": "keyword"
},
"arn": {
"type": "keyword",
"index": true
},
"accountId": {
"type": "keyword"
},
"username": {
"type": "keyword",
"index": true
}
}
}
}
},
"eventTime": {
"type": "keyword"
},
"eventSource": {
"type": "keyword"
},
"eventName": {
"type": "keyword"
},
"awsRegion": {
"type": "keyword",
"index": true
},
"sourceIPAddress": {
"type": "keyword"
},
"userAgent": {
"type": "keyword",
"index": true
},
"requestParameters":{
"dynamic":true,
"properties": {
"serviceId":{
"type": "keyword"
}
}
},
"eventType": {
"type": "keyword"
},
"recipientAccountId": {
"type": "keyword"
}
}
}
}
}
}

Please help me in resolving this issue.

Regards,
Kamlesh

in es 6 type is not allow as i know.

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