Per default the agents will be marked as inactive is they cannot perform a health check with the fleet server for more than 1209600 seconds, which is something around 14 days.
So, were you agents offline before that?
Can you run these requests in Kibana Dev Tools and share the response:
GET kbn:/api/fleet/agent_status
And
GET kbn:/api/fleet/agents?page=1&perPage=10&showInactive=true
But i found the error, ahead of fleet servers, i have an LB, and some acl on this alb was causing this issue.
I fix this and now all agents are online again
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.