Beats: agentes ligeros de envío de datos
Descubra la familia Beats, que envía logs y métricas a ELK Stack; cuándo usar Filebeat frente a Metricbeat y cómo encaja Beats junto a Logstash.
Beats: agentes ligeros de envío de datos es una lección gratuita de System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) en CoddyKit. Esta es la lección 4 de 4. Puedes leer la lección completa abajo gratuitamente — luego la practicas en el navegador con un editor de código integrado y un tutor de IA 24/7. Forma parte de la ruta de aprendizaje de System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry), y tu progreso se sincroniza en la web y la app de CoddyKit. El curso de System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) incluye 4 lecciones en total.
Partes de esta lección aún no han sido traducidas y se muestran en inglés.
What Are Beats?
Beats are lightweight, single-purpose agents installed on your servers to collect data and ship it to Elasticsearch or Logstash. They use few resources, ideal for edge collection.
The Beats Family
Each Beat targets one data type.
- Filebeat for log files
- Metricbeat for system and service metrics
- Packetbeat for network data
- Heartbeat for uptime checks
Where Beats Fit
Beats sit at the source. They can ship directly to Elasticsearch, or to Logstash first when you need heavier parsing and enrichment.
app server -> Filebeat -> Logstash -> Elasticsearch -> KibanaFilebeat Basics
Filebeat tails log files and forwards new lines. It tracks read position so it resumes after restarts without duplicating data.
filebeat.inputs:
- type: log
paths:
- /var/log/app/*.logSending to Elasticsearch
For simple pipelines, point Filebeat straight at Elasticsearch.
output.elasticsearch:
hosts: ["http://localhost:9200"]Sending to Logstash
When you need grok parsing or enrichment, send to Logstash instead.
output.logstash:
hosts: ["localhost:5044"]Metricbeat
Metricbeat collects metrics from the OS and from services through modules.
metricbeat.modules:
- module: system
metricsets: [cpu, memory, network]
period: 10sModules and Dashboards
Beats ship with prebuilt modules that include parsing rules and ready-made Kibana dashboards, so you get visualizations without manual setup.
filebeat modules enable nginx
filebeat setup --dashboardsBack Pressure Handling
If the output is slow or down, Beats apply back pressure and buffer locally, slowing reads instead of dropping data.
Beats vs Logstash
Beats are light shippers; Logstash is a heavy processor. Use Beats at the edge for collection and Logstash centrally for transformation.
- Beats: low footprint, on every host
- Logstash: more CPU, fewer central nodes
A Typical Setup
Filebeat on each app server forwards logs to a Logstash pipeline that parses and enriches them before indexing in Elasticsearch for Kibana.
Quick Check
Choose the right Beat.
Recap
You learned that Beats are lightweight per-purpose shippers, that Filebeat handles logs and Metricbeat handles metrics, and that Beats can send directly to Elasticsearch or through Logstash for heavier parsing. Beats sit at the edge with a small footprint, complementing central Logstash processing.
Aprende System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) con un tutor de IA — gratis
Escribe y ejecuta código real en tu navegador, obtén ayuda instantánea de un tutor de IA disponible 24/7 y continúa donde lo dejaste en la web o en la aplicación.
- Cursos
- 12
- Lecciones
- 48
Preguntas frecuentes
¿La lección «Beats: agentes ligeros de envío de datos» es gratis?
Sí — el texto completo de «Beats: agentes ligeros de envío de datos» es gratis para leer aquí en la web. Para practicarla de forma interactiva (editor de código integrado y tutor de IA 24/7) y desbloquear el resto del curso de System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry), actualiza a CoddyKit PRO. El curso de System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) incluye 4 lecciones en total.
¿Qué aprenderé en «Beats: agentes ligeros de envío de datos»?
Descubra la familia Beats, que envía logs y métricas a ELK Stack; cuándo usar Filebeat frente a Metricbeat y cómo encaja Beats junto a Logstash. Practicas System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) con código real que ejecutas directamente en el navegador, y un tutor de IA 24/7 responde tus preguntas mientras trabajas en la lección.
¿Necesito experiencia previa para empezar System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry)?
No se requiere experiencia previa. System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) en CoddyKit está estructurado para principiantes hasta estudiantes avanzados, así que puedes empezar aquí o desde el inicio y avanzar a tu ritmo. Esta es la lección 4 de 4.
¿Cuánto tiempo toma la lección «Beats: agentes ligeros de envío de datos»?
La mayoría de las lecciones de CoddyKit toman alrededor de 5–10 minutos. Cada una es compacta e interactiva, así que avanzas constantemente y retomas exactamente por donde dejaste en la web y la app.
¿Puedo escribir y ejecutar código en esta lección de System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry)?
Sí. Cada lección de System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) incluye un editor de código integrado, así que escribes y ejecutas código real directamente en tu navegador y obtienes retroalimentación instantánea de IA — sin configuración local necesaria.
Todas las lecciones de este curso
- Elasticsearch: indexación y búsqueda
- Logstash: ingesta y procesamiento de datos
- Kibana: visualización y dashboards
- Beats: agentes ligeros de envío de datos