Elastic Agent and Fleet: connecting servers to monitoring
Elastic Agent collects logs and metrics from a server, and Fleet manages agents from Kibana. We cover Fleet Server, agent policies and the rollout order.
You connect a server to monitoring in Elastic by installing Elastic Agent on it and enrolling it in Fleet, the Kibana app for managing agents. The agent receives a policy with a list of integrations, for example the System integration, which collects CPU, memory and network metrics as well as system logs. Agents connect to Fleet through Fleet Server. On Elastic Cloud Hosted, Fleet Server is created automatically. With a self-managed cluster, you have to install it yourself.
Below we explain how these components work together, how to structure policies and in what order to connect the first servers. The facts follow the Fleet and Elastic Agent documentation, as of 26 November 2026.
Elastic Agent, Fleet and Fleet Server: who does what
Elastic Agent is a single program on the host that collects logs, metrics and other data. The documentation describes it as a single, unified way to add monitoring for logs and metrics to a host.
Fleet is the Kibana interface for central management of agents and their policies. It shows the status of each agent and lets you add integrations and trigger upgrades.
Fleet Server connects agents to Fleet. The documentation describes it as an ordinary Elastic Agent enrolled in a Fleet Server policy. Agents open the connection to Fleet Server themselves, using a long-polling HTTP request. Fleet Server does not connect to the agents, so firewalls only need to allow outbound traffic from the servers.
An agent can also run in standalone mode, without Fleet. Every configuration change is then made locally on the host. The documentation recommends this mode for advanced users only, and with dozens of servers you lose the central view and remote upgrades.
Where Fleet Server runs
| Deployment model | Fleet Server | Who maintains it |
|---|---|---|
| Elastic Cloud Hosted | created automatically with the deployment, in the Integrations Server instance | Elastic |
| Elastic Cloud Serverless | hosted Fleet Server in Observability and Security projects; you cannot install your own | Elastic |
| Elasticsearch on Elastic Cloud, Fleet Server on your side | a Fleet Server cluster in your server room, connected to the cloud | you |
| Self-managed cluster | your own Fleet Server, with certificates from your own certificate authority | you |
The documentation points to the mixed model, with Fleet Server in your own server room and Elasticsearch in the cloud, for organisations that want to limit control traffic leaving the data centre. This applies, for example, to larger organisations with a segmented network. The price is responsibility for the high availability and upgrades of Fleet Server.
Fleet Server is stateless, so with more agents you can run several instances behind a load balancer. With a self-managed cluster, the version order also applies: Elasticsearch must be on the same or a newer version than Fleet Server, and Fleet Server on the same or a newer version than the agents (patch versions aside).
Agent policies: how to structure them
A policy defines which integrations run on which hosts. According to the agent policy documentation, each Elastic Agent can belong to only one policy. Changes saved in a policy are rolled out straight away to all agents enrolled in it.
The documentation recommends grouping agents by role rather than creating a separate policy for each host. In practice, a handful of policies is usually enough:
- Windows Server hosts,
- Linux servers,
- servers running a specific service, e.g. a database or web server, with an additional integration for that service,
- Fleet Server, with its own policy.
In the policy you also set the namespace the data goes to, a CPU usage limit for the agent and the time after which inactive agents are unenrolled. A single Fleet supports up to 1,000 policies, or 500 on Elastic Cloud Serverless. If you group by role, this limit does not matter.
Integrations to start with
The first integration in a server policy is usually the System integration. It collects CPU, load, memory and network metrics. On Windows it collects the Application, System and Security event logs, and on Linux the syslog and auth logs. On top of that come integrations for the services running on the server and, in separate policies, for network devices.
Integrations come with ready-made Kibana dashboards. Once the first host is connected, you can see right away whether data is arriving and whether it has the right fields.
Order for connecting the first servers
- Check that Fleet Server is running. On Elastic Cloud Hosted, the “Elastic Cloud agent policy” should have the status Healthy. For your own Fleet Server, prepare a certificate from your own certificate authority, because the documentation advises against using the self-signed certificates from the quick start in production.
- Open traffic from the servers to Fleet Server (port 8220 by default) and to Elasticsearch.
- Create policies by role and add integrations to them.
- Install the agent on one or two test servers using the enrollment token of the right policy.
- Check the agent status in Fleet and confirm in the integration dashboards that the data is complete.
- Connect further servers in batches, policy by policy.
Only one Elastic Agent can run on a host. That is why a server running Fleet Server outside a container cannot have a second agent collecting other data.
Upgrading agents from Fleet
Fleet can upgrade selected agents remotely: download the new version, install it and restart. According to the upgrade documentation, with many agents you spread the upgrade over a maintenance window so as not to overload the network. The documentation does not recommend an immediate upgrade for batches of more than 10 agents.
Three rules that are easy to forget:
- Before upgrading agents to a new minor version, upgrade the agents acting as Fleet Server.
- Fleet cannot upgrade agents installed from DEB or RPM packages. You upgrade them with the package manager, as you do with Docker and Kubernetes images.
- Automatic agent upgrades are only available on selected Elastic subscription levels.
Plan agent upgrades together with the cluster upgrade. We described the timeline for moving from 8.x to 9.x in our article on the end of support for Elastic 8.x.
Mistakes that most often hold up the start
- A firewall blocks traffic from the servers to Fleet Server, so the agent installs but never appears in Fleet.
- The self-signed certificate from the quick start stays in production, and agents on new servers reject the connection.
- Each server has its own policy, so changing one integration means editing dozens of policies.
- A second agent is installed on the server running Fleet Server.
- Agents installed from DEB or RPM packages wait for an upgrade from Fleet that never comes.
- Fleet Server runs an older version than the agents it is meant to serve.
How we connect servers for our clients
We choose the Fleet Server model to suit the deployment: on Elastic Cloud we use the hosted one, and with a cluster on the client’s servers we deploy our own. Elastic Agent is only one of the data sources. We collect logs into the same platform from network devices, Windows and Windows Server, Linux and IoT devices.
The full scope is described on our page on IT infrastructure monitoring on Elastic. If you collect some data through OpenTelemetry, read our articles on the EDOT Collector in Elastic Agent and on OpenTelemetry alongside Elastic and Grafana.
Planning to connect servers to Elastic or tidying up existing policies? Get in touch. We will start with a list of your servers and their roles.