Crash of mongodb created unrecognized indicies

Hello,
we have experienced crash of the mongodb, but graylog instead of failing continued working without updating configuration in mongodb, This lead to creation of new indices which are now unrecognized by graylog.

The indicies aren’t included in index_ranges, is it possible to manually add them?

Hello,

Did you try recalculating the index ranges? That should fix it: https://docs.graylog.org/en/3.3/pages/configuration/index_model.html#keeping-the-index-ranges-in-sync
You can also do it through the web interface (system > indices > $index_name > maintenance > recalculate index ranges)

I had an issue once where that didn’t work and I had to drop the db.index_ranges table in mongodb and then recalculate again.

Hello,

the recalculation fails with

2020-11-19T15:13:21.747+01:00 INFO [RebuildIndexRangesJob] Recalculating index ranges for index set DBs (sam_*): 20 indices affected.
2020-11-19T15:13:21.748+01:00 ERROR [RebuildIndexRangesJob] Multiple write alias targets found, this is a bug.
2020-11-19T15:13:21.749+01:00 ERROR [RebuildIndexRangesJob] Multiple write alias targets found, this is a bug.
2020-11-19T15:13:21.750+01:00 ERROR [RebuildIndexRangesJob] Multiple write alias targets found, this is a bug.
2020-11-19T15:13:21.751+01:00 ERROR [RebuildIndexRangesJob] Multiple write alias targets found, this is a bug.
2020-11-19T15:13:21.752+01:00 ERROR [RebuildIndexRangesJob] Multiple write alias targets found, this is a bug.
2020-11-19T15:13:21.754+01:00 ERROR [RebuildIndexRangesJob] Multiple write alias targets found, this is a bug.
2020-11-19T15:13:21.755+01:00 ERROR [RebuildIndexRangesJob] Multiple write alias targets found, this is a bug.
2020-11-19T15:13:21.756+01:00 ERROR [RebuildIndexRangesJob] Multiple write alias targets found, this is a bug.
2020-11-19T15:13:21.757+01:00 ERROR [RebuildIndexRangesJob] Multiple write alias targets found, this is a bug.
2020-11-19T15:13:21.758+01:00 ERROR [RebuildIndexRangesJob] Multiple write alias targets found, this is a bug.
2020-11-19T15:13:21.759+01:00 ERROR [RebuildIndexRangesJob] Multiple write alias targets found, this is a bug.
2020-11-19T15:13:21.760+01:00 ERROR [RebuildIndexRangesJob] Multiple write alias targets found, this is a bug.
2020-11-19T15:13:21.761+01:00 ERROR [RebuildIndexRangesJob] Multiple write alias targets found, this is a bug.
2020-11-19T15:13:21.762+01:00 ERROR [RebuildIndexRangesJob] Multiple write alias targets found, this is a bug.
2020-11-19T15:13:21.763+01:00 ERROR [RebuildIndexRangesJob] Multiple write alias targets found, this is a bug.
2020-11-19T15:13:21.764+01:00 ERROR [RebuildIndexRangesJob] Multiple write alias targets found, this is a bug.
2020-11-19T15:13:21.765+01:00 ERROR [RebuildIndexRangesJob] Multiple write alias targets found, this is a bug.
2020-11-19T15:13:21.766+01:00 ERROR [RebuildIndexRangesJob] Multiple write alias targets found, this is a bug.
2020-11-19T15:13:21.767+01:00 ERROR [RebuildIndexRangesJob] Multiple write alias targets found, this is a bug.
2020-11-19T15:13:21.768+01:00 ERROR [RebuildIndexRangesJob] Multiple write alias targets found, this is a bug.
2020-11-19T15:13:21.768+01:00 INFO [RebuildIndexRangesJob] Done calculating index ranges for 20 indices. Took 21ms.