The graylog server’s storage was filled up, so i deleted one of th indices named graylog_0 to free up space. Now the graylog is not writing any logs.
Following error message in the logs
[147]: index [graylog_deflector], type [_doc], id [4e0340c0-c9e2-11eb-a468-005056bcc134], message [ElasticsearchException[Elasticsearch exception [type=illegal_argument_exception, reason=no write index is defined for alias [graylog_deflector]. The write index may be explicitly disabled using is_write_index=false or the alias points to multiple indices without one being designated as a write index]]]
2021-06-10T17:54:15.087+05:45 ERROR [IndexRotationThread] Couldn’t point deflector to a new index
java.lang.IllegalArgumentException: [alias] is unsupported for [REMOVE_INDEX]
Yes, I did use the same command to delete the index graylog_0 and I also attempted to recalculate or rotate the indices but it didn’t work.
I looked more into some more community posts and did some hit-and-trial solutions. Then I got the idea to look into the alias assigned on all my indices. It seems the actual issue was that two of my indices were assigned the deflector alias. Indices graylog_1 and graylog_4 both had graylog_deflector alias set to them.
I deleted the alias on graylog_1 using the below command, it resolved the issues: