Earlier this week, I updated my v 5.3.2 cluster configuration for Hot/Warm Architecture. I added "index.routing.allocation.require.box_type": "hot" to all existing daily indices then updated my logstash and metricbeat templates.
First Day: metricbeat-mongo-2017.05.18 index created without any issues.
Second Day: metricbeat-mongo-2017.05.19 index created but...
- Aggs would return empty in both Kibana Visualization and directly querying Elasticsearch.
- All Data was visible in Kibana Discovery
- Tried refreshing index field list in Kibana Management
My solution:
- Delete metricbeat template
- Stopping all log indexing
- Reindex existing metricbeat indices to New Indices
- Delete Old Index
- Start all log indexing
- Aggregation worked
Meticbeat Template snippet if where I added Index Routing:
{
"mappings": {
"_default_": {
.... }
},
"order": 0,
"settings": {
"index.mapping.total_fields.limit": 10000,
"index.refresh_interval": "5s",
"index.routing.allocation.require.box_type": "hot"
},
"template": "metricbeat-*"
}
Am I missing something on adding the Index Routing?
Thanks in advance!
Cheers,
Rich