I have had this problem every other month. I just go in and close the oldest 2 months of indexes. That has been solving the problem up until this week. Even though the Elasticsearch stats pages tells me that I only have 691 shards, var log messages is still getting complains about the shard limit has been reached.
Here are the Stats.
{"_shards":{"total":691,"successful":375,"failed":0},"_all":{"primaries":{"docs":{"count":407595633,"deleted":4809986},"store":{"size_in_bytes":347694910745},"indexing":{"index_total":22743762,"index_time_in_millis":6942641,"index_current":0,"index_failed":2,"delete_total":0,"delete_time_in_millis":0,"delete_current":0,"noop_update_total":0,"is_throttled":false,"throttle_time_in_millis":0},"get":{"total":8711,"time_in_millis":3039,"exists_total":8706,"exists_time_in_millis":3038,"missing_total":5,"missing_time_in_millis":1,"current":0},"search"
Here is the error message:
Jan 5 16:04:08 dmlog-01 auditbeat[24352]: 2021-01-05T16:04:08.901-0800#011INFO#011[monitoring]#011log/log.go:145#011Non-zero metrics in the last 30s#011{"monitoring": {"metrics": {"auditd":{"received_msgs":4},"beat":{"cpu":{"system":{"ticks":1668120,"time":{"ms":674}},"total":{"ticks":15543610,"time":{"ms":5598},"value":15543610},"user":{"ticks":13875490,"time":{"ms":4924}}},"handles":{"limit":{"hard":4096,"soft":1024},"open":211},"info":{"ephemeral_id":"a954e875-9df0-4ec0-a024-96f5cdc86e74","uptime":{"ms":83374980}},"memstats":{"gc_next":11632848,"memory_alloc":10651656,"memory_total":81742771136},"runtime":{"goroutines":53}},"libbeat":{"config":{"module":{"running":0}},"output":{"events":{"acked":13,"batches":5,"total":13},"read":{"bytes":30},"write":{"bytes":6377}},"pipeline":{"clients":3,"events":{"active":0,"published":13,"total":13},"queue":{"acked":13}}},"metricbeat":{"auditd":{"auditd":{"events":4,"success":4}},"system":{"login":{"events":1,"success":1},"process":{"events":2,"success":2},"socket":{"events":6,"success":6}}},"system":{"load":{"1":0.77,"15":1,"5":1,"norm":{"1":0.0963,"15":0.125,"5":0.125}}}}}}
Best Regards,
Steve