Is there a way to use define mapping for an index that will be used for all the subsequent indexes with different time stamps?
I am sending logs from Logstash to ES using elasticsearch plugin. In the index configuration I am specifying my_index-%{YYYY-MM-DD}.
When I run this on Kibana:
PUT my_index-*
{
"mappings": {
"_doc": {
"dynamic": true,
"properties": {
"ip_addr": {
"type": "ip"
}
}
}
}
}
I get output error as:
{
"type": "illegal_state_exception",
"reason": "There are no external requests known to support wildcards that don't support replacing their indices"
}