elastic-agent-setup

Configure Elastic Agent to collect logs, metrics, and security data via Fleet or standalone enrollment.

6|Updated Feb 20, 2026
One-click install
npx skills add https://github.com/patrykkopycinski/elastic-cursor-plugin --skill elastic-agent-setup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: elastic-agent-setup
Source: https://github.com/patrykkopycinski/elastic-cursor-plugin/tree/main/.cursor/skills/elastic-agent-setup
Command: npx skills add https://github.com/patrykkopycinski/elastic-cursor-plugin --skill elastic-agent-setup

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill guides users through installing and enrolling Elastic Agent so hosts and services reliably send logs, metrics, and security data to Elasticsearch and Fleet.

Core Features & Use Cases

  • Agent Enrollment: Detect the operating system and walk through enrolling agents via Fleet UI or the elastic-agent enroll CLI.
  • Integration Setup: Add and configure common integrations such as logs, metrics, nginx, and mysql to capture relevant data streams.
  • Validation & Troubleshooting: Verify agent health in Fleet and confirm data streams and indices appear in Elasticsearch to ensure successful onboarding.
  • Use Case: Onboard a fleet of web servers to Elastic Cloud using Fleet so that logs and system metrics are collected and visible in Kibana.

Quick Start

Enroll Elastic Agent to your Fleet by providing the Elasticsearch URL and enrollment token, install the agent package for your OS or use the Docker image, and enable logs and metrics integrations.

Frequently Asked Questions about elastic-agent-setup

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I install and enroll Elastic Agent to collect logs and metrics?

To install and enroll Elastic Agent, provide the Elasticsearch URL and enrollment token, install the agent package for your OS or use the Docker image, and enable logs and metrics integrations to start data collection.

What is the best way to onboard hosts to Elastic Cloud using Fleet?

Onboarding hosts to Elastic Cloud using Fleet involves detecting the OS, verifying Fleet or agent policy availability, and guiding package or Docker installation and enrollment to collect logs and system metrics.

Does Elastic Agent support standalone enrollment without Fleet?

Yes, Elastic Agent supports standalone enrollment via the elastic-agent enroll CLI, allowing you to configure log, metric, and security data collection without relying on a centralized Fleet server.

How do I add nginx and mysql integrations to Elastic Agent?

You can add nginx and mysql integrations during or after the agent enrollment process, configuring the relevant data streams to capture specific service metrics and logs for Elasticsearch.

How do I validate Elastic Agent health and confirm data is reaching Elasticsearch?

Validate Elastic Agent health by checking the agent status in the Fleet UI and confirming that the expected data streams and indices appear in Elasticsearch to ensure successful onboarding.

Can I deploy Elastic Agent using Docker for observability data collection?

Yes, you can deploy Elastic Agent using the Docker image, enrolling it with your Elasticsearch URL and token to collect logs, metrics, and security data from containerized hosts and services.