Hello Kodoku,
The reason here is that you have 23 unassigned shards, therefore, active/allocated shards will not reach 100% and the cluster health status will remain in a yellow state. Green (no warnings and no errors) when you have all the shards active and red (error) when you are missing some primary shards in the cluster.
Remember that in a single node cluster, you will not be able to allocate replicas since primary and replica data will never be stored in the same server (so no HA config is possible).
In your case, you have a total of 1254 shards and 23 are unassigned.
You can get an explanation for each unassigned shard using this command:
If this would be your case, you could solve this by changing the config to NO_REPLICAS and only 1 SHARD for those indices. First, change the existent indices with this:
For indices already created, we can change their settings:
PUT /security-auditlog-*/_settings { "index": { "number_of_replicas": 0 } }Then, create a template to avoid new indices to follow those settings:
PUT _template/security-auditlog-template { "index_patterns": ["security-auditlog-*"], "settings": { "number_of_replicas": 0 } }This will solve the issue with the indices security-auditlog-*, you can search for more explanations and fix them all to turn the health state to GREEN.
Hope this helps!