The only agent that thinks for itself

Autonomous Monitoring with self-learning AI built-in, operating independently across your entire stack.

Unlimited Metrics & Logs
Machine learning & MCP
5% CPU, 150MB RAM
3GB disk, >1 year retention
800+ integrations, zero config
Dashboards, alerts out of the box
> Discover Netdata Agents

Centralized metrics streaming and storage

Aggregate metrics from multiple agents into centralized Parent nodes for unified monitoring across your infrastructure.

Stream from unlimited agents
Long-term data retention
High availability clustering
Data replication & backup
Scalable architecture
Enterprise-grade security
> Learn about Parents

Fully managed cloud platform

Access your monitoring data from anywhere with our SaaS platform. No infrastructure to manage, automatic updates, and global availability.

Zero infrastructure management
99.9% uptime SLA
Global data centers
Automatic updates & patches
Enterprise SSO & RBAC
SOC2 & ISO certified
> Explore Netdata Cloud

Deploy Netdata Cloud in your infrastructure

Run the full Netdata Cloud platform on-premises for complete data sovereignty and compliance with your security policies.

Complete data sovereignty
Air-gapped deployment
Custom compliance controls
Private network integration
Dedicated support team
Kubernetes & Docker support
> Learn about Cloud On-Premises

Powerful, intuitive monitoring interface

Modern, responsive UI built for real-time troubleshooting with customizable dashboards and advanced visualization capabilities.

Real-time chart updates
Customizable dashboards
Dark & light themes
Advanced filtering & search
Responsive on all devices
Collaboration features
> Explore Netdata UI

Monitor on the go

Native iOS and Android apps bring full monitoring capabilities to your mobile device with real-time alerts and notifications.

iOS & Android apps
Push notifications
Touch-optimized interface
Offline data access
Biometric authentication
Widget support
> Download apps

The future of infrastructure observability

See our strategic direction across AI-native observability, full-stack signals, operational intelligence, and enterprise platform maturity.

AI-native observability
Full-stack signal coverage
Operational intelligence
Enterprise platform maturity
Agent releases every 6 weeks
Cloud continuous delivery
> Explore Product Roadmap

Best energy efficiency

True real-time per-second

100% automated zero config

Centralized observability

Multi-year retention

High availability built-in

Zero maintenance

Always up-to-date

Enterprise security

Complete data control

Air-gap ready

Compliance certified

Millisecond responsiveness

Infinite zoom & pan

Works on any device

Native performance

Instant alerts

Monitor anywhere

AI-native observability

Continuous delivery

Open source foundation

80% Faster Incident Resolution

AI-powered troubleshooting from detection, to root cause and blast radius identification, to reporting.

True Real-Time and Simple, even at Scale

Linearly and infinitely scalable full-stack observability, that can be deployed even mid-crisis.

90% Cost Reduction, Full Fidelity

Instead of centralizing the data, Netdata distributes the code, eliminating pipelines and complexity.

See and Map Your Entire Network

Live topology, flow analytics, and SNMP device and trap monitoring — unified with your full-stack observability.

Control Without Surrender

SOC 2 Type 2 certified with every metric kept on your infrastructure.

Integrations

800+ collectors and notification channels, auto-discovered and ready out of the box.

800+ data collectors
Auto-discovery & zero config
Cloud, infra, app protocols
Notifications out of the box
> Explore integrations
Real Results
46% Cost Reduction

Reduced monitoring costs by 46% while cutting staff overhead by 67%.

— Leonardo Antunez, Codyas

Zero Pipeline

No data shipping. No central storage costs. Query at the edge.

From Our Users
"Out-of-the-Box"

So many out-of-the-box features! I mostly don't have to develop anything.

— Simon Beginn, LANCOM Systems

No Query Language

Point-and-click troubleshooting. No PromQL, no LogQL, no learning curve.

Enterprise Ready
67% Less Staff, 46% Cost Cut

Enterprise efficiency without enterprise complexity—real ROI from day one.

— Leonardo Antunez, Codyas

SOC 2 Type 2 Certified

Zero data egress. Only metadata reaches the cloud. Your metrics stay on your infrastructure.

Full Coverage
800+ Collectors

Auto-discovered and configured. No manual setup required.

Any Notification Channel

Slack, PagerDuty, Teams, email, webhooks—all built-in.

Built for the People Who Get Paged

Because 3am alerts deserve instant answers, not hour-long hunts.

Every Industry Has Rules. We Master Them.

See how healthcare, finance, and government teams cut monitoring costs 90% while staying audit-ready.

Monitor Any Technology. Configure Nothing.

Install the agent. It already knows your stack.
From Our Users
"A Rare Unicorn"

Netdata gives more than you invest in it. A rare unicorn that obeys the Pareto rule.

— Eduard Porquet Mateu, TMB Barcelona

99% Downtime Reduction

Reduced website downtime by 99% and cloud bill by 30% using Netdata alerts.

— Falkland Islands Government

Real Savings
30% Cloud Cost Reduction

Optimized resource allocation based on Netdata alerts cut cloud spending by 30%.

— Falkland Islands Government

46% Cost Cut

Reduced monitoring staff by 67% while cutting operational costs by 46%.

— Codyas

Real Coverage
"Plugin for Everything"

Netdata has agent capacity or a plugin for everything, including Windows and Kubernetes.

— Eduard Porquet Mateu, TMB Barcelona

"Out-of-the-Box"

So many out-of-the-box features! I mostly don't have to develop anything.

— Simon Beginn, LANCOM Systems

Real Speed
Troubleshooting in 30 Seconds

From 2-3 minutes to 30 seconds—instant visibility into any node issue.

— Matthew Artist, Nodecraft

20% Downtime Reduction

20% less downtime and 40% budget optimization from out-of-the-box monitoring.

— Simon Beginn, LANCOM Systems

Pay per Node. Unlimited Everything Else.

One price per node. Unlimited metrics, logs, users, and retention. No per-GB surprises.

Free tier—forever
No metric limits or caps
Retention you control
Cancel anytime
> See pricing plans

What's Your Monitoring Really Costing You?

Most teams overpay by 40-60%. Let's find out why.

Expose hidden metric charges
Calculate tool consolidation
Customers report 30-67% savings
Results in under 60 seconds
> See what you're really paying

Your Infrastructure Is Unique. Let's Talk.

Because monitoring 10 nodes is different from monitoring 10,000.

On-prem & air-gapped deployment
Volume pricing & agreements
Architecture review for your scale
Compliance & security support
> Start a conversation

Monitoring That Sells Itself

Deploy in minutes. Impress clients in hours. Earn recurring revenue for years.

30-second live demos close deals
Zero config = zero support burden
Competitive margins & deal protection
Response in 48 hours
> Apply to partner

Per-Second Metrics at Homelab Prices

Same engine, same dashboards, same ML. Just priced for tinkerers.

Community: Free forever · 5 nodes · non-commercial
Homelab: $90/yr · unlimited nodes · fair usage
> Get the Homelab Plan

$1,000 Per Referral. Unlimited Referrals.

Your colleagues get 10% off. You get 10% commission. Everyone wins.

10% of subscriptions, up to $1,000 each
Track earnings inside Netdata Cloud
PayPal/Venmo payouts in 3-4 weeks
No caps, no complexity
> Get your referral link
Cost Proof
40% Budget Optimization

"Netdata's significant positive impact" — LANCOM Systems

Calculate Your Savings

Compare vs Datadog, Grafana, Dynatrace

Savings Proof
46% Cost Reduction

"Cut costs by 46%, staff by 67%" — Codyas

30% Cloud Bill Savings

"Reduced cloud bill by 30%" — Falkland Islands Gov

Enterprise Proof
"Better Than Combined Alternatives"

"Better observability with Netdata than combining other tools." — TMB Barcelona

Real Engineers, <24h Response

DPA, SLAs, on-prem, volume pricing

Why Partners Win
Demo Live Infrastructure

One command, 30 seconds, real data—no sandbox needed

Zero Tickets, High Margins

Auto-config + per-node pricing = predictable profit

Homelab Ready
Free Video Course

8-episode Netdata tutorial by LearnLinux.tv

76k+ GitHub Stars

3rd most starred monitoring project

Worth Recommending
Product That Delivers

Customers report 40-67% cost cuts, 99% downtime reduction

Zero Risk to Your Rep

Free tier lets them try before they buy

AI Support Assistant, Available 24/7

Nedi has access to all official documentation, source code, and resources. Ask any question about Netdata—responds in your language.

Deployment & configuration
Troubleshooting & sizing
Alerts & notifications
Evidence-based answers
> Ask Nedi now

Never Fight Fires Alone

Docs, community, and expert help—pick your path to resolution.

Learn.netdata.cloud docs
Discord, Forums, GitHub
Premium support available
> Get answers now

60 Seconds to First Dashboard

One command to install. Zero config. 850+ integrations documented.

Linux, Windows, K8s, Docker
Auto-discovers your stack
> Read our documentation

76,000+ Engineers Strong

615+ contributors. 1.5M daily downloads. One mission: simplify observability.

Per-Second. 90% Cheaper. Data Stays Home.

Side-by-side comparisons: costs, real-time granularity, and data sovereignty for every major tool.

See why teams switch from Datadog, Prometheus, Grafana, and more.

> Browse all comparisons
Edge-Native Observability, Born Open Source
Per-second visibility, ML on every metric, and data that never leaves your infrastructure.
Founded in 2016
615+ contributors worldwide
Remote-first, engineering-driven
Open source first
> Read our story
Promises We Publish—and Prove
12 principles backed by open code, independent validation, and measurable outcomes.
Open source, peer-reviewed
Zero config, instant value
Data sovereignty by design
Aligned pricing, no surprises
> See all 12 principles
Edge-Native, AI-Ready, 100% Open
76k+ stars. Full ML, AI, and automation—GPLv3+, not premium add-ons.
76,000+ GitHub stars
GPLv3+ licensed forever
ML on every metric, included
Zero vendor lock-in
> Explore our open source
Build Real-Time Observability for the World
Remote-first team shipping per-second monitoring with ML on every metric.
Remote-first, fully distributed
Open source (76k+ stars)
Challenging technical problems
Your code on millions of systems
> See open roles
Meet the Team Behind Netdata
Conferences, meetups, and tradeshows where you can see Netdata in action and talk to the engineers who build it.
Live demos and deep dives
Book 1-on-1 meetings
Talks and panel sessions
Event recaps and photos
> See all events
Talk to a Netdata Human in <24 Hours
Sales, partnerships, press, or professional services—real engineers, fast answers.
Discuss your observability needs
Pricing and volume discounts
Partnership opportunities
Media and press inquiries
> Book a conversation
Your Data. Your Rules.
On-prem data, cloud control plane, transparent terms.
Trust & Scale
76,000+ GitHub Stars

One of the most popular open-source monitoring projects

SOC 2 Type 2 Certified

Enterprise-grade security and compliance

Data Sovereignty

Your metrics stay on your infrastructure

Validated
University of Amsterdam

"Most energy-efficient monitoring solution" — ICSOC 2023, peer-reviewed

ADASTEC (Autonomous Driving)

"Doesn't miss alerts—mission-critical trust for safety software"

Community Stats
615+ Contributors

Global community improving monitoring for everyone

1.5M+ Downloads/Day

Trusted by teams worldwide

GPLv3+ Licensed

Free forever, fully open source agent

Why Join?
Remote-First

Work from anywhere, async-friendly culture

Impact at Scale

Your work helps millions of systems

$ guides / fluentd / fluentd-read-from-head-replay ▌

Operations Guides

Fluentd read_from_head replay: a memory and CPU spike that re-reads whole files

Fluentd has just started (or restarted) and the process is immediately pinned: CPU at or near 100% of one core, RSS climbing fast, and the pipeline emitting a burst of events with old timestamps. Alerts on process CPU, memory growth, or “events older than X arriving at the destination” are probably firing.

In most cases this is read_from_head true doing exactly what you configured. The in_tail plugin is reading each watched file from byte zero, parsing every historical line, and pushing those events through the filter chain, buffer, and outputs. The spike is real resource consumption, but it is one-time per file per position entry, and it stops when the read catches up.

Two failure modes matter: the replay is large enough to OOM-kill the process before it finishes (common in containers with tight memory limits), and the spike gets misdiagnosed as a leak, a poison pill, or an output problem, burning incident time. This guide covers confirming the replay, ruling out lookalikes, and making it survivable.

What this means

The in_tail input decides where to start reading a file based on two things: the read_from_head parameter and the position file (pos_file).

  • With read_from_head false (the default), a newly seen file is tailed from the end. Only new data is read.
  • With read_from_head true, a file with no recorded position is read from the beginning. Every line is parsed and emitted.

The replay happens once per file per position entry. The triggers are:

  1. First ever startup: the pos_file is empty or missing, so every matched file is “new.”
  2. New files appearing under a watched glob (for example /var/log/containers/*.log after pods are scheduled).
  3. The pos_file being lost: deleted, on tmpfs, on an ephemeral container filesystem, or corrupted. On the next start every file is “new” again and the entire history replays.

Two version-dependent behaviors change the picture:

  • pos_file takes precedence. If a position already exists for a file, read_from_head true does not re-read from the start; reading resumes from the recorded offset. Operators often expect read_from_head true to force a full re-read on every restart and are confused when it does not. That is expected behavior, not a bug.
  • v1.14.3 changed the semantics for newly discovered files. From v1.14.3, in_tail reads newly added files from head automatically even when read_from_head is false. The parameter now only controls startup behavior for files already present at launch. On v1.14.3 and later, read_from_head false no longer protects you from head-reads of files that appear after startup.

During the replay, in_tail reads as fast as it can. Every line becomes a parsed event object in the Ruby heap, flows through filters, and lands in buffers. Because CRuby’s GVL serializes CPU-bound work, the parse-and-emit path saturates one core, and RSS climbs with the volume of in-flight events and buffered chunks. If the historical files are enormous, the replay can exhaust the container memory limit before it finishes. The process dies, restarts, and if the pos_file was not persisted or the crash prevented position updates from being written, the replay starts over.

flowchart TD
  A[Startup CPU and RSS spike] --> B{read_from_head true in config?}
  B -- no --> C[Not replay: check poison pill, GC storm, output stall]
  B -- yes --> D{pos_file exists and persisted?}
  D -- no --> E[Full replay of all matched files: expected but expensive]
  D -- yes --> F[Replay limited to files without a position entry]
  E --> G{RSS climbing toward limit?}
  F --> G
  G -- yes --> H[OOM risk: reduce replay size or raise limits before restarting]
  G -- no --> I[Wait it out: spike ends when read catches up]

Common causes

CauseWhat it looks likeFirst thing to check
First startup with read_from_head trueOne-time CPU and RSS spike on initial deploy; old timestamps arriving at destinationgrep read_from_head in the Fluentd config
pos_file lost or on ephemeral storageFull replay on every restart, not just the firstWhether the pos_file path survives a restart (tmpfs, container layer, missing volume)
New files under a watched globSmaller, repeated spikes as new files appear (v1.14.3+ does this even with read_from_head false)File list under the glob before vs after the spike
Enormous historical filesSpike large enough to trigger OOM kill; process restarts and replays againFile sizes under the watched paths; dmesg for OOM events
Multiple in_tail sources, topmost with read_from_head trueOther inputs appear dead during startup; nothing flows until the head-read finishesOrder and parameters of <source> blocks; startup log timestamps
Actual memory leak misread as replayRSS keeps rising after the replay should have finishedWhether RSS plateaus once positions reach end-of-file

Quick checks

These are read-only and safe to run during the event.

# 1. Confirm read_from_head is set
grep -n "read_from_head" /etc/td-agent/td-agent.conf /etc/fluent/fluentd.conf 2>/dev/null

# 2. Find the pos_file path
grep -n "pos_file" /etc/td-agent/td-agent.conf /etc/fluent/fluentd.conf 2>/dev/null

# 3. Check pos_file freshness and contents
# Line format is: filepath<TAB>position (hex)<TAB>inode
ls -la /var/log/td-agent/*.pos 2>/dev/null
cat /var/log/td-agent/td-agent.pos 2>/dev/null

# 4. Compare recorded positions to actual file sizes.
# Position is stored in hex; a position climbing steadily toward
# the file size means a replay is in progress and healthy.
while IFS=$'\t' read -r filepath pos_hex inode; do
  pos=$((16#$pos_hex))
  actual_size=$(stat -c%s "$filepath" 2>/dev/null || echo "MISSING")
  echo "$filepath pos=$pos actual_size=$actual_size"
done < /var/log/td-agent/td-agent.pos

# 5. Watch RSS and CPU of the Fluentd process
ps -p $(pgrep -f fluentd | head -1) -o pid,rss,%cpu,etime,comm

# 6. Check whether a previous OOM kill already happened
dmesg | grep -i -E "oom|killed process" | tail -5

# 7. Confirm events flowing are historical (input emit rate high)
curl -s http://localhost:24220/api/plugins.json | \
  jq '[.plugins[] | select(.plugin_category=="input") | .emit_records // 0] | add'

# 8. Check buffer pressure from the replay burst
curl -s http://localhost:24220/api/plugins.json | \
  jq '.plugins[] | select(.plugin_category=="output") | {id: .plugin_id, queue: .buffer_queue_length, avail_pct: .buffer_available_buffer_space_ratios}'

Note on check 7: on Fluentd versions older than v1.19.0, input emit_records is always 0 unless enable_input_metrics true is set in <system> (input metrics default to on only from v1.19.0). If you get zeros, that is an instrumentation gap, not proof the replay is not happening. Also note the pos_file path and filename vary by deployment; adjust checks 3 and 4 to whatever pos_file your config declares.

How to diagnose it

  1. Confirm the configuration. Verify read_from_head true exists on an in_tail source and note which paths or globs it watches. If it watches /var/log/containers/*.log on a busy node, the replay volume can be very large.

  2. Check whether this is first run or pos_file loss. If the pos_file is missing, empty, or on a filesystem that does not persist (tmpfs, container writable layer without a volume), every restart is a “first run.” This is the difference between a one-time event and a recurring incident. Check your Kubernetes volumes or systemd unit for where the pos_file actually lives.

  3. Watch the positions move. Re-run check 4 above a minute apart. Positions advancing steadily toward file sizes mean the replay is progressing normally and will end. A position stuck on one file with CPU pegged suggests something else, for example a pathological line triggering catastrophic regex backtracking (the poison pill pattern).

  4. Project the memory runway. Watch RSS growth rate and compare against the container or host limit. If (limit - current RSS) / growth rate is shorter than the estimated time to finish the replay, the process will not survive. Check dmesg for prior OOM kills; a process that already died once during replay is in a loop if the pos_file was not updated before the kill.

  5. Check downstream impact. The replay floods outputs with historical events. Watch buffer_queue_length, buffer_available_buffer_space_ratios, and retry_count on the outputs. If the destination (Elasticsearch, S3, a forward receiver) cannot absorb the burst, the replay pushes the buffer toward overflow, turning an expected input-side spike into real backpressure. Old data arriving can also pollute time-based dashboards and trigger stale-data or duplicate-data alarms downstream.

  6. Rule out the lookalikes. A real memory leak keeps RSS rising after positions reach end-of-file. A poison pill shows CPU pegged with a stationary position. An output stall shows rising retry_count and a queue that does not drain after the replay burst passes. The distinguishing feature of read_from_head replay is that it is bounded: positions advance, then the spike ends.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
Process RSSThe primary OOM risk during replayRSS climbing linearly with no plateau while positions still advancing
Process CPU (single core)Replay is GVL-bound; one core saturates100% of one core during catch-up is expected; sustained saturation after positions reach EOF is not
Input emit_records rateQuantifies replay throughput (needs enable_input_metrics true before v1.19.0)Very high rate immediately after start, then return to baseline
pos_file positions vs file sizesDirect measure of replay progressPosition stuck while CPU is pegged (not replay; investigate the parser)
buffer_queue_length and buffer_available_buffer_space_ratiosReplay bursts can overwhelm outputsQueue growing and available space falling during the replay window
retry_count on outputsDestination struggling with the burstNon-zero retries during replay; backpressure compounding the spike
rotated_file_count / tracked_file_countNew files appearing under globs trigger fresh head-reads (rotated_file_count since v1.14.1, tracked_file_count since v1.19.0)Tracked count jumping right before a spike
OOM kills in dmesgConfirms a failed replay attemptAny OOM entry for the Fluentd process during a replay window

Fixes

Reduce or eliminate the replay

  • Drop read_from_head true if you do not need historical data. The default (false) tails from the end on startup. You lose the history in existing files but avoid the spike entirely. On v1.14.3 and later, files discovered after startup are still read from head automatically, so this only controls the startup burst for pre-existing files.
  • Scope it narrowly. If only one low-volume source needs head-reading, split your <source> blocks so the flag applies only where needed. Multiple in_tail sources where the topmost uses read_from_head true block each other on startup; other plugins cannot start until the head-read finishes.

Make the replay survivable

  • skip_refresh_on_startup true avoids the startup blocking behavior: in_tail defers the initial file scan so other plugins can start instead of waiting for large files to be read. This reduces the blast radius of the replay window but does not reduce total work.
  • max_line_size (added in v1.14.4) skips lines longer than the given size. During a head-read of old files, one unexpectedly huge line can balloon memory or trip BufferChunkOverflowError. Cheap insurance.
  • Raise the container memory limit temporarily for the first start, then lower it once positions are recorded. Crude but effective when you cannot avoid one large replay.
  • Pre-position the pos_file. If you are deploying to a host with large existing logs and do not need history, start once with read_from_head false so positions are recorded at end-of-file, then enable read_from_head true for future new files.

Fix pos_file persistence

This is the highest-value fix for recurring replays:

  • Put the pos_file on a persistent volume in Kubernetes (hostPath or PVC), not the container’s writable layer.
  • Never put it on tmpfs unless you genuinely want a full replay on every boot.
  • Ensure the Fluentd process can write it; a read-only pos_file means positions never advance durably.

Version hygiene

  • If you run v1.12.x, upgrade: that series carried several in_tail fixes you want, including a crash on short-lived logs (v1.12.3) and broken rotation handling in refresh_watcher (v1.12.4). At least v1.12.4 is the safe floor before relying on in_tail in that series.
  • If you use follow_inodes true with read_from_head true and wildcard paths, log duplication on rotation was addressed in v1.16.2 (wrongly detached watchers and duplicate reads under follow_inodes were fixed); partial duplication during the rotate_wait window can still occur.

Prevention

  • Persist the pos_file. Treat it as state, not cache. Losing it converts a one-time cost into a per-restart incident.
  • Size for the replay, not the steady state. If read_from_head true is intentional, the startup memory ceiling must absorb parsing the largest matched file plus normal buffer headroom. Measure the replay peak once in staging and set the limit above it with margin.
  • Alert on RSS trend, not startup spikes. A high but plateauing RSS is normal for Ruby. A monotonic rise after positions reach end-of-file is the leak signal. Tune alerts to fire on sustained growth over tens of minutes, not on the first minute after a restart.
  • Watch positions, not just metrics. The cheapest confirmation that a replay is healthy is positions advancing in the pos_file. Build that check into your runbooks for startup incidents.
  • Keep destination headroom for replay bursts. A replay is a synthetic traffic spike at the output. If your Elasticsearch cluster or forward receiver runs hot at steady state, the first restart with read_from_head true will push it into retries. Verify the output can absorb a burst of historical volume.

How Netdata helps

  • Per-second process CPU and RSS charts make the replay signature obvious: a bounded single-core CPU plateau and a linear RSS climb that flattens when catch-up completes. That shape distinguishes replay from a leak at a glance.
  • Netdata’s Fluentd collector polls the monitor_agent API, so input emit_records rate, output emit_records, buffer_queue_length, buffer_available_buffer_space_ratios, and retry_count sit on the same timeline as the process resource spike. Input rate spike plus stable outputs plus a draining queue confirms a healthy replay; input spike plus rising retries warns the destination is buckling.
  • Restart and OOM context sits next to the memory charts, so a CrashLoopBackOff caused by replay-induced OOM kills shows up as repeated short-lived process lifetimes rather than a mystery gap in log flow.
  • Anomaly detection on the input rate flags replays you did not schedule, such as a new file under a glob or a pos_file loss after a node replacement. That is how silent pos_file persistence problems surface.