Beats do lekkiego przesyłania danych
Poznają Państwo rodzinę lekkich shipperów Beats, które przy minimalnym narzucie przesyłają logi, metryki i inne dane do Elasticsearch lub Logstash.
Beats do lekkiego przesyłania danych to bezpłatna lekcja Elasticsearch & Full Text Search Systems na CoddyKit. To lekcja 4 z 4. Możesz przeczytać całą lekcję poniżej za darmo — a potem ćwiczyć ją interaktywnie w przeglądarce z wbudowanym edytorem kodu i tutorem AI dostępnym 24/7. To część ścieżki edukacyjnej Elasticsearch & Full Text Search Systems, a Twój postęp synchronizuje się między webem a aplikacją CoddyKit. Kurs Elasticsearch & Full Text Search Systems zawiera 4 lekcji w sumie.
Części tej lekcji nie zostały jeszcze przetłumaczone i są wyświetlane po angielsku.
The Last Mile of Ingestion
Logstash is powerful but heavy. To collect data right at the source (a server, container, or device) Elastic offers Beats: small, single-purpose agents written in Go that ship data efficiently.
What Beats Are
Each Beat focuses on one job and runs as a tiny resident process with a low memory footprint, making it safe to deploy on thousands of machines simultaneously.
Filebeat
Filebeat tails log files and forwards each line. It tracks read offsets so it resumes correctly after a restart and never loses or duplicates lines under normal operation.
filebeat.inputs:
- type: log
paths:
- /var/log/nginx/*.logMetricbeat
Metricbeat collects system and service metrics: CPU, memory, disk, plus modules for databases, web servers, and more. It samples on an interval and ships structured metric events.
metricbeat.modules:
- module: system
metricsets: [cpu, memory]
period: 10sOther Beats
The family includes Packetbeat (network traffic), Heartbeat (uptime monitoring), Auditbeat (audit data), and Winlogbeat (Windows event logs). You pick the Beat that matches your data.
Output Destinations
Beats can ship directly to Elasticsearch for simple pipelines, or to Logstash when you need heavy parsing and enrichment before storage.
output.elasticsearch:
hosts: ['localhost:9200']Modules and Dashboards
Beats modules come with prebuilt parsing, index templates, and Kibana dashboards. Enabling the nginx module instantly gives you parsed access logs and ready-made visualizations.
filebeat modules enable nginxIngest Pipelines
When shipping straight to Elasticsearch, Beats can invoke ingest pipelines on the cluster to parse and transform data, replacing much of Logstash for simpler cases.
Back-Pressure Handling
If the output is slow or down, Beats apply back-pressure and slow their reads rather than dropping data. Filebeat keeps its position in the file until delivery is acknowledged.
Beats vs Logstash
A common architecture uses Beats at the edge for collection and Logstash centrally for transformation: Beats collect, Logstash processes, Elasticsearch stores. Use Beats alone when no heavy parsing is needed.
Elastic Agent
The newer Elastic Agent unifies multiple Beats into a single managed agent controlled by Fleet, simplifying large deployments. The underlying Beats concepts still apply.
Quick Check
Test your understanding of Beats.
Recap
You learned about lightweight data shippers:
- Beats are small Go agents, each focused on one data type.
- Filebeat ships logs; Metricbeat ships metrics; others cover network, uptime, and Windows events.
- Beats output to Elasticsearch or Logstash and ship prebuilt modules and dashboards.
- They apply back-pressure to avoid data loss, and Elastic Agent unifies them under Fleet.
Często zadawane pytania
Czy lekcja „Beats do lekkiego przesyłania danych” jest bezpłatna?
Tak — pełny tekst „Beats do lekkiego przesyłania danych” jest dostępny za darmo tutaj w sieci. Aby ćwiczyć ją interaktywnie (wbudowany edytor kodu i tutor AI dostępny 24/7) i odblokować resztę kursu Elasticsearch & Full Text Search Systems, przejdź na CoddyKit PRO. Kurs Elasticsearch & Full Text Search Systems zawiera 4 lekcji w sumie.
Co nauczysz się w „Beats do lekkiego przesyłania danych”?
Poznają Państwo rodzinę lekkich shipperów Beats, które przy minimalnym narzucie przesyłają logi, metryki i inne dane do Elasticsearch lub Logstash. Ćwiczysz Elasticsearch & Full Text Search Systems z praktycznym kodem, który uruchamiasz bezpośrednio w przeglądarce, a tutor AI dostępny 24/7 odpowiada na Twoje pytania podczas pracy nad lekcją.
Czy potrzebuję doświadczenia, aby zacząć Elasticsearch & Full Text Search Systems?
Nie wymagamy żadnego doświadczenia. Elasticsearch & Full Text Search Systems w CoddyKit jest strukturyzowany dla początkujących i zaawansowanych użytkowników, więc możesz zacząć tutaj lub od początku i uczyć się w swoim tempie. To lekcja 4 z 4.
Ile czasu zajmuje lekcja „Beats do lekkiego przesyłania danych”?
Większość lekcji CoddyKit trwa około 5–10 minut. Każda lekcja to mały, interaktywny krok, dzięki czemu robisz systematyczne postępy i zawsze wracasz dokładnie do tego samego miejsca — na webie i w aplikacji.
Czy mogę pisać i uruchamiać kod w tej lekcji Elasticsearch & Full Text Search Systems?
Tak. Każda lekcja Elasticsearch & Full Text Search Systems zawiera wbudowany edytor kodu, więc piszesz i uruchamiasz prawdziwy kod bezpośrednio w przeglądarce i od razu otrzymujesz sprzężenie zwrotne od AI — bez konfiguracji na komputerze.
Wszystkie lekcje w tym kursie
- Kibana do wizualizacji
- Logstash do ingestii danych
- Integracja z aplikacjami (klienty)
- Beats do lekkiego przesyłania danych