I'm running Elastic Stack 6.8.1 and trying to recreate a ML job.
It has been working fine for a couple of years now, but I deleted the old job and tried to create it again, it doesn't allow it to be created.
The error is:
Save failed: [mapper_parsing_exception] Failed to parse mapping [doc]: mapper [Packet-Type] of different type, current_type [text], merged_type [ObjectMapper]
I understand that it means that there is at least one index which has different mapping for Packet-Type (actually, Packet-Type.raw) field than all the other indices. I have gone through the indices and templates but everywhere the Packet-Type has a raw field and it is always keyword type.
The Packet-Type field is defined as follows:
"Packet-Type" : {
"type" : "text",
"fields" : {
"raw" : {
"type" : "keyword"
}
}
}
Here's my job config:
{
"job_id": "logins",
"groups": [],
"results_retention_days": 180,
"analysis_config": {
"bucket_span": "15m",
"detectors": [
{
"detector_description": "high_count over \"Fully-Qualified-Distinguished-Name.raw\" partitionfield=customer excludefrequent=all",
"function": "high_count",
"over_field_name": "Fully-Qualified-Distinguished-Name.raw",
"partition_field_name": "customer",
"exclude_frequent": "all",
"detector_index": 0
}
],
"influencers": [
"Fully-Qualified-Distinguished-Name.raw",
"Reason-Code",
"Packet-Type.raw"
]
},
"data_description": {
"time_field": "@timestamp"
},
"results_index_name": "custom-logins",
"datafeed_config": {
"query": {
"match_all": {}
},
"indices": [
"all-logins"
],
"types": []
}
}
What am I missing?