Set inactivity timeout
Elastic Cloud Serverless projects are autoscaled environments, fully managed by Elastic and available on Elastic Cloud. Availability This functionality is generally available and ready for production usage. Serverless interfaces and procedures might differ from classic Elastic Stack deployments. The Elastic Stack includes Elastic's core products such as Elasticsearch, Kibana, Logstash, and Beats. Availability This functionality is generally available and ready for production usage. Unless stated otherwise on the page, this functionality is available when your Elastic Stack is deployed on Elastic Cloud Hosted, Elastic Cloud Enterprise, Elastic Cloud on Kubernetes, and self-managed environments. This documentation corresponds to the latest patch available for each minor version. If you're not using the latest patch, check the release notes for changes.
Serverless
Generally available
Stack
Generally available
The inactivity timeout moves Elastic Agents to inactive status after being offline for a set amount of time. Inactive Elastic Agents are still valid Elastic Agents, but are removed from the main Fleet UI allowing you to better manage Elastic Agents and declutter the Fleet UI.
When Fleet Server receives a check-in from an inactive Elastic Agent, it returns to healthy status.
For example, if an employee is on holiday with their laptop off, the Elastic Agent will transition to offline then inactive once the inactivity timeout limit is reached. This prevents the inactive Elastic Agent from cluttering the Fleet UI. When the employee returns, the Elastic Agent checks in and returns to healthy status with valid API keys.
If an Elastic Agent is no longer valid, you can manually unenroll inactive Elastic Agents to revoke the API keys. Unenrolled agents need to be re-enrolled to be operational again.
For more on Elastic Agent statuses, see view agent status.
Set the inactivity timeout in the Elastic Agent policy to the amount of time after which you want an offline Elastic Agent to become inactive.
To set the inactivity timeout:
- In Fleet, select Agent policies.
- Click the policy name, then click Settings.
- In the Inactivity timeout field, enter a value in seconds. The default value is 1209600 seconds or two weeks.