I have a strange problem with a non-existent index. I created a new index then deleted it but graylog thinks it is still there.
If i open the search page I get
Index not found for query: beta_0. Try recalculating your index ranges.
If I check the API I only see 3 index sets and nothing with beta_*
/api/system/indices/index_sets?skip=0&limit=0&stats=false
{
“total”: 3,
“index_sets”: [
{
“id”: “5b76bc34534e50078495bcc8”,
“title”: “Default index set”,
“description”: “The Graylog default index set - events that don’t match any stream rules end up here”,
“index_prefix”: “graylog”,
“shards”: 1,
“replicas”: 1,
“rotation_strategy_class”: “org.graylog2.indexer.rotation.strategies.TimeBasedRotationStrategy”,
“rotation_strategy”: {
“type”: “org.graylog2.indexer.rotation.strategies.TimeBasedRotationStrategyConfig”,
“rotation_period”: “P1D”
},
“retention_strategy_class”: “org.graylog2.indexer.retention.strategies.DeletionRetentionStrategy”,
“retention_strategy”: {
“type”: “org.graylog2.indexer.retention.strategies.DeletionRetentionStrategyConfig”,
“max_number_of_indices”: 7
},
“creation_date”: “2018-08-17T12:14:44.01Z”,
“index_analyzer”: “standard”,
“index_optimization_max_num_segments”: 1,
“index_optimization_disabled”: false,
“writable”: true,
“default”: true
},
{
“id”: “5b9b6264534e500434c8ae6f”,
“title”: “Output”,
“description”: “Short time index set for sending to x”,
“index_prefix”: “output”,
“shards”: 1,
“replicas”: 0,
“rotation_strategy_class”: “org.graylog2.indexer.rotation.strategies.MessageCountRotationStrategy”,
“rotation_strategy”: {
“type”: “org.graylog2.indexer.rotation.strategies.MessageCountRotationStrategyConfig”,
“max_docs_per_index”: 20000000
},
“retention_strategy_class”: “org.graylog2.indexer.retention.strategies.DeletionRetentionStrategy”,
“retention_strategy”: {
“type”: “org.graylog2.indexer.retention.strategies.DeletionRetentionStrategyConfig”,
“max_number_of_indices”: 1
},
“creation_date”: “2018-09-14T07:25:24.356Z”,
“index_analyzer”: “standard”,
“index_optimization_max_num_segments”: 1,
“index_optimization_disabled”: false,
“writable”: true,
“default”: false
},
{
“id”: “5b7d2e24534e500c10346f40”,
“title”: “Media”,
“description”: “x 365 day index set”,
“index_prefix”: “media-”,
“shards”: 2,
“replicas”: 1,
“rotation_strategy_class”: “org.graylog2.indexer.rotation.strategies.TimeBasedRotationStrategy”,
“rotation_strategy”: {
“type”: “org.graylog2.indexer.rotation.strategies.TimeBasedRotationStrategyConfig”,
“rotation_period”: “P1D”
},
“retention_strategy_class”: “org.graylog2.indexer.retention.strategies.DeletionRetentionStrategy”,
“retention_strategy”: {
“type”: “org.graylog2.indexer.retention.strategies.DeletionRetentionStrategyConfig”,
“max_number_of_indices”: 365
},
“creation_date”: “2018-08-22T09:34:28.957Z”,
“index_analyzer”: “standard”,
“index_optimization_max_num_segments”: 1,
“index_optimization_disabled”: false,
“writable”: true,
“default”: false
}
],
“stats”: {}
}
Now If I check the API /api/system/indices/ranges the first entry is:
{
"index_name": "beta_0",
"begin": "1970-01-01T00:00:00.000Z",
"end": "1970-01-01T00:00:00.000Z",
"calculated_at": "2018-11-09T11:09:34.414Z",
"took_ms": 0
},
I checked elastic and there is no index with beta_* in it.
I think I need to delete this from mongo somewhere but not sure how and wanted to check with you guys first.
Any help is much appreciated thanks!