here magnus, you can see i have multiple mappings that should not be included. I've used multiple index template file for each "type".
{
"em-hlr-applog-2017.12.07" : {
"aliases" : { },
"mappings" : {
"maprouterlog" : {
"properties" : {
"message" : {
"type" : "text",
"fields" : {
"ws" : {
"type" : "text",
"analyzer" : "whitespace"
}
}
}
}
},
"hlrlog" : {
"properties" : {
"%{" : {
"properties" : {
"@metadata" : {
"properties" : {
"fingerprint" : {
"properties" : {
"}" : {
"type" : "long"
}
}
}
}
}
}
},
"@timestamp" : {
"type" : "date"
},
"@version" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"akkatimestamp" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"beat" : {
"properties" : {
"hostname" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"name" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"version" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
}
}
},
"dateko" : {
"type" : "date"
},
"host" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"input_type" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"message" : {
"type" : "text",
"fields" : {
"ws" : {
"type" : "text",
"analyzer" : "whitespace"
}
}
},
"offset" : {
"type" : "long"
},
"received_at" : {
"type" : "date"
},
"received_from" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"source" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"tags" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"timestampko" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"type" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
}
}
},
"applog" : {
"properties" : {
"message" : {
"type" : "text",
"fields" : {
"ws" : {
"type" : "text",
"analyzer" : "whitespace"
}
}
}
}
},
"emggsnlog" : {
"properties" : {
"message" : {
"type" : "text",
"fields" : {
"ws" : {
"type" : "text",
"analyzer" : "whitespace"
}
}
}
}
}
},
"settings" : {
"index" : {
"number_of_shards" : "5",
"provided_name" : "em-hlr-applog-2017.12.07",
"creation_date" : "1512604806737",
"analysis" : {
"index" : {
"number_of_shards" : "3",
"number_of_replicas" : "1"
},
"analyzer" : {
"domain_name_analyzer" : {
"filter" : "lowercase",
"type" : "custom",
"tokenizer" : "domain_name_tokenizer"
}
},
"tokenizer" : {
"domain_name_tokenizer" : {
"reverse" : "true",
"type" : "PathHierarchy",
"delimiter" : "."
}
}
},
"number_of_replicas" : "1",
"uuid" : "Ace2Job1RgCc7l8KA8O4Qw",
"version" : {
"created" : "5050299"
}
}
}
}
}