What you will learn in this TP
- Start Elasticsearch and Kibana with Fleet preconfigured
- Create the Fleet Server service token
- Enroll an agent in a policy
- Check the data in Kibana
Introduction #
What you will learn in this section
- Start Elasticsearch and Kibana with Fleet preconfigured
- Create the Fleet Server service token
- Enroll an agent in a policy
- Check the data in Kibana
Context. Your team wants to replace its Beats with Elastic Agent. You build a complete lab to validate the Fleet chain end to end.
Prerequisites: Docker and Docker Compose, 4 GB of free RAM · Estimated time: 60 min
Hands-on #
Guided steps, with their solution.
1. The lab files
Why? Fleet is preconfigured in kibana.yml: output, Fleet Server host and policies are created at startup, with no clicks.
Create a folder, then the.env,kibana.ymlandcompose.yamlfiles. Replace the version with the latest available 9.x version.2. Start Elasticsearch and Kibana
Why? Kibana connects with the kibana_system user, whose password must be set first.
3. Fleet Server
Why? Fleet Server authenticates to Elasticsearch with a dedicated service token, never with the elastic account.
4. Enroll the agent
Why? Each policy has its own enrollment token: the agent joins « Lab policy » and receives the System integration.
5. Check
In Kibana › Fleet › Agents, thelab-agentagent must be Healthy. Then check the data streams.
Difficulty level : ●●○○○ (2/5)
My progress
Sign in to track your progress and take notes. Sign in
💬 Questions about this lesson
No questions yet: be the first to ask for help or share your configuration.
Recommended Articles
Installing Fleet Server and enrolling Elastic Agents
Set up Fleet Server, create a policy, enroll Linux, Windows and Docker agents, understand tokens ...
Elastic Agent: architecture, Fleet and integrations
Understand Elastic Agent: single collection agent, Fleet and Fleet Server, agent policies, integr...
Agent policies, integrations, data streams and pipelines
Build agent policies, add integrations (System, Nginx, Custom Logs), choose namespaces, customise...
Elastic Agent or Beats? Choosing and migrating
Compare Elastic Agent and Beats (Filebeat, Metricbeat, Winlogbeat), know when to keep Beats, and ...
Elastic Agent on Kubernetes
Deploy Elastic Agent on Kubernetes: Fleet-managed DaemonSet, Kubernetes integration, kube-state-m...
Standalone Elastic Agent, Logstash and Kafka outputs, and OpenTelemetry (EDOT)
Write a standalone configuration, ship to Logstash or Kafka, and use Elastic Agent as an OpenTele...
Monitoring, upgrading and troubleshooting Elastic Agent
Operate an Elastic Agent fleet: states in Fleet, agent monitoring, batch upgrades, diagnostics, l...
Elastic Agent in production: best practices
Elastic Agent best practices: security, policy organisation, volume control, Fleet Server high av...
Kibana: role, installation and first steps
What Kibana is in the Elastic suite, how to install it with Elasticsearch (start-local, Docker), ...