System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) · Lekcja

Beats: lekkie przesyłanie danych

Poznają Państwo rodzinę Beats, która przesyła logi i metryki do stosu ELK, dowiedzą się, kiedy używać Filebeat zamiast Metricbeat oraz jak Beats współpracuje z Logstash.

Lekcja 4 z 413 kroki

Beats: lekkie przesyłanie danych to bezpłatna lekcja System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) 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 System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry), a Twój postęp synchronizuje się między webem a aplikacją CoddyKit. Kurs System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) zawiera 4 lekcji w sumie.

Części tej lekcji nie zostały jeszcze przetłumaczone i są wyświetlane po angielsku.

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 -> Kibana

Filebeat 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/*.log

Sending 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: 10s

Modules 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 --dashboards

Back 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.

Bezpłatny start

Ucz się System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) dzięki korepetycjom AI — za darmo

Pisz i uruchamiaj kod w przeglądarce, otrzymuj natychmiastową pomoc od korepetytora AI dostępnego 24/7 i kontynuuj naukę w sieci lub w aplikacji.

Kursy
12
Lekcje
48

Często zadawane pytania

Czy lekcja „Beats: lekkie przesyłanie danych” jest bezpłatna?

Tak — pełny tekst „Beats: lekkie przesyłanie 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 System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry), przejdź na CoddyKit PRO. Kurs System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) zawiera 4 lekcji w sumie.

Co nauczysz się w „Beats: lekkie przesyłanie danych”?

Poznają Państwo rodzinę Beats, która przesyła logi i metryki do stosu ELK, dowiedzą się, kiedy używać Filebeat zamiast Metricbeat oraz jak Beats współpracuje z Logstash. Ćwiczysz System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) 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ąć System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry)?

Nie wymagamy żadnego doświadczenia. System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) 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: lekkie przesyłanie 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 System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry)?

Tak. Każda lekcja System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) 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

  1. Elasticsearch: indeksowanie i wyszukiwanie
  2. Logstash: pobieranie i przetwarzanie danych
  3. Kibana: wizualizacja i dashboardy
  4. Beats: lekkie przesyłanie danych
← Powrót do System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry)