Beats: agenti leggeri per l'invio dei dati
Scopra la famiglia Beats, che invia log e metriche all'ELK Stack, quando usare Filebeat invece di Metricbeat e come Beats si affianchi a Logstash.
Beats: agenti leggeri per l'invio dei dati è una lezione System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) gratuita su CoddyKit. Questa è la lezione 4 di 4. Puoi leggere la lezione completa qui gratuitamente — poi esercitati direttamente nel browser con un editor di codice integrato e un tutor IA disponibile 24/7. Fa parte del percorso di apprendimento System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry), e i tuoi progressi si sincronizzano tra il web e l'app CoddyKit. Il corso System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) include 4 lezioni in totale.
Parti di questa lezione non sono ancora state tradotte e vengono mostrate in inglese.
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.
Impara System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) con un tutor IA — gratis
Scrivi ed esegui vero codice nel tuo browser, ricevi aiuto istantaneo da un tutor IA disponibile 24/7, e riprendi da dove hai lasciato sul web o nell'app.
- Corsi
- 12
- Lezioni
- 48
Domande Frequenti
La lezione «Beats: agenti leggeri per l'invio dei dati» è gratuita?
Sì — il testo completo di «Beats: agenti leggeri per l'invio dei dati» è gratuito qui sul web. Per esercitarvi in modo interattivo (un editor di codice integrato e un tutor IA 24/7) e sbloccare il resto del corso System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry), passa a CoddyKit PRO. Il corso System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) include 4 lezioni in totale.
Cosa imparerò in «Beats: agenti leggeri per l'invio dei dati»?
Scopra la famiglia Beats, che invia log e metriche all'ELK Stack, quando usare Filebeat invece di Metricbeat e come Beats si affianchi a Logstash. Eserciti System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) con codice pratico che esegui direttamente nel browser, e un tutor IA 24/7 risponde alle tue domande mentre lavori sulla lezione.
Ho bisogno di esperienza per iniziare System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry)?
Non è richiesta alcuna esperienza precedente. System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) su CoddyKit è strutturato per principianti e studenti avanzati, quindi puoi iniziare da qui o dall'inizio e procedere al tuo ritmo. Questa è la lezione 4 di 4.
Quanto tempo richiede la lezione «Beats: agenti leggeri per l'invio dei dati»?
La maggior parte delle lezioni CoddyKit richiede circa 5–10 minuti. Ogni lezione è breve e interattiva, quindi fai progressi costanti e riprendi esattamente da dove hai lasciato su web e app.
Posso scrivere ed eseguire codice in questa lezione System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry)?
Sì. Ogni lezione System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) include un editor di codice integrato, quindi scrivi ed esegui codice reale direttamente nel tuo browser e ricevi feedback istantaneo dall'IA — nessuna configurazione locale necessaria.
Tutte le lezioni di questo corso
- Elasticsearch: indicizzazione e ricerca
- Logstash: acquisizione ed elaborazione dei dati
- Kibana: visualizzazione e dashboard
- Beats: agenti leggeri per l'invio dei dati