Beats:軽量データシッパー
ログとメトリクスをELK Stackへ送るBeatsファミリー、FilebeatとMetricbeatの使い分け、BeatsとLogstashの連携方法を学びます。
「Beats:軽量データシッパー」はCoddyKit上の無料System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry)レッスンです。 これはレッスン4/4です。 下記で完全なレッスンを無料で読むことができます。その後、ブラウザ内の組み込みコードエディタと24時間対応のAIチューターでハンズオン演習できます。 これはSystem Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry)学習パスの一部であり、ウェブとCoddyKitアプリ全体で進捗が同期されます。 System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry)コースには全4レッスンが含まれています。
このレッスンの一部はまだ翻訳されておらず、英語で表示されています。
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.
AI チューターと学ぶ System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) — 無料
ブラウザでリアルコードを書いて実行し、24/7 の AI チューターから瞬時にサポートを受け、ウェブまたはアプリで続きから学習できます。
- コース
- 12
- レッスン
- 48
よくある質問
「Beats:軽量データシッパー」レッスンは無料ですか?
はい。「Beats:軽量データシッパー」の完全なテキストはこのウェブで無料で読めます。インタラクティブに演習し(組み込みコードエディタと24時間対応のAIチューター)、System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry)コースの残りをアンロックするには、CoddyKit PROにアップグレードしてください。 System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry)コースには全4レッスンが含まれています。
「Beats:軽量データシッパー」で何を学びますか?
ログとメトリクスをELK Stackへ送るBeatsファミリー、FilebeatとMetricbeatの使い分け、BeatsとLogstashの連携方法を学びます。 ブラウザで直接実行するハンズオンコードでSystem Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry)を演習し、24時間対応のAIチューターがレッスンを進める中での質問に答えます。
System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry)を始めるのに経験は必要ですか?
事前経験は必要ありません。CoddyKitのSystem Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry)は初級者から上級者向けに構成されているため、ここから始めるか最初から始めて、自分のペースで進むことができます。 これはレッスン4/4です。
「Beats:軽量データシッパー」レッスンにはどのくらい時間がかかりますか?
ほとんどのCoddyKitレッスンは約5~10分かかります。各レッスンはコンパクトでインタラクティブなので、着実に進歩し、ウェブとアプリ全体で正確に前回の場所から再開できます。
このSystem Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry)レッスンでコードを書いて実行できますか?
はい。すべてのSystem Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry)レッスンに組み込みコードエディタが含まれているため、ブラウザでリアルコードを書いて実行し、即座のAIフィードバックを取得できます。ローカル設定は不要です。