Hi,
So I have these indexing errors now and then: {“type”:“illegal_argument_exception”,“reason”:“Limit of total fields [1000] in index [windows_327] has been exceeded”}
Which as per the doc is fairly simple to fix and works for some time. First, let me show you I made this json template:
{
"order" : -1,
"template" : "windows_*",
"settings" : {
"index" : {
"analysis" : {
"analyzer" : {
"analyzer_keyword" : {
"filter" : "lowercase",
"tokenizer" : "keyword"
}
}
}
},
"index.mapping.total_fields.limit": 5000
},
"mappings" : {
"message" : {
"properties" : {
"message" : {
"type" : "text",
"analyzer" : "standard",
"fielddata" : false
},
"full_message" : {
"type" : "text",
"analyzer" : "standard",
"fielddata" : false
},
"timestamp" : {
"type" : "date",
"format" : "yyyy-MM-dd HH:mm:ss.SSS"
},
"source" : {
"type" : "text",
"analyzer" : "analyzer_keyword",
"fielddata" : true
},
"streams" : {
"type" : "keyword"
}
},
"dynamic_templates" : [
{
"internal_fields" : {
"match" : "gl2_*",
"mapping" : {
"type" : "keyword"
}
}
},
{
"store_generic" : {
"match" : "*",
"mapping" : {
"index" : "not_analyzed"
}
}
}
],
"_source" : {
"enabled" : true
}
}
},
"aliases" : { }
}
which I upload using this command:
curl -X PUT -d @'windows-template.json' 'http://localhost:9200/_template/windows-template?pretty'
After cycling this works nicely for some time but about a week or two after the issue occurs again and I have to apply this ix again.
Is there a way to make this more permanent? I’m running 2.4.6 on Debian Jessie
Thanks