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-log-rotation-loss ▌

Operations Guides

Fluentd log rotation loss: copytruncate, rotate_wait, and missed lines

Log rotation is the most common source of quiet data loss in a Fluentd deployment. Pipeline metrics look healthy, the destination keeps receiving data, and yet there is a gap in the log stream at exactly 00:00 every night, or a burst of duplicate records right after logrotate runs. The cause is almost always the interaction between the rotation method used by logrotate (or the container runtime) and the assumptions Fluentd’s in_tail plugin makes about how files change on disk.

The two rotation strategies behave completely differently from in_tail’s perspective. With copytruncate, the file is copied and then truncated in place, which creates an inherent race: lines written between the copy and the truncate are never in the copied file and are erased from the original. With rename/create rotation, the old file is renamed and a new one is created, which is safer, but only if Fluentd finishes reading the old file before it detaches and discovers the new file promptly. This article covers how to tell which failure you have, how to confirm it with the monitor agent and the pos_file, and how to configure rotation and in_tail so the loss stops.

What this means

in_tail tracks each watched file by inode and byte offset, persisted in the pos_file. Under normal operation it reads appended lines and advances the offset. Rotation breaks both of the invariants that make this work:

  • rename/create: the path now points to a new inode. Fluentd keeps reading the old file for rotate_wait seconds (default 5s) to catch lines flushed to it just before rotation, then switches to the new file. If rotate_wait is too short, the last lines written to the old file are skipped. If refresh_interval is too long, the new file is discovered late and its early lines arrive late, showing up as a delivery gap right after each rotation.
  • copytruncate: the inode stays the same but the file size drops. Fluentd detects the truncation via file size decrease, but there is a window during the copy phase where the application is still writing to the original file. Anything written after Fluentd’s current offset but before the truncate is lost. The truncation can also trigger a re-read of the file, producing duplicates in the destination.

With wildcard paths (the norm in Kubernetes, e.g. /var/log/containers/*.log), there is a third failure mode: without follow_inodes true (available since v1.12.0), the rotated file can be re-discovered as a new match on the glob and re-read from the beginning, producing a large block of duplicates on every rotation.

flowchart TD
  R[logrotate fires] --> M{Rotation method?}
  M -->|copytruncate| C1[copy phase: app still writing]
  C1 --> C2[truncate: lines since last read erased]
  C2 --> L1[Missed lines + possible re-read duplicates]
  M -->|rename/create| N1[old file renamed, new inode at path]
  N1 --> Q{rotate_wait long enough?}
  Q -->|no| L2[tail of old file skipped]
  Q -->|yes| Q2{new file discovered promptly?}
  Q2 -->|no| L3[gap until refresh_interval fires]
  Q2 -->|yes| OK[clean handoff]

Common causes

CauseWhat it looks likeFirst thing to check
copytruncate raceA short gap in the log stream at every rotation time; occasionally a burst of duplicatesgrep copytruncate /etc/logrotate.d/* for the affected file
rotate_wait too shortThe last lines before each rotation never arrive at the destinationCompare the final lines of the rotated file on disk with what reached the destination
refresh_interval too longNew log file sits unread for a while after rotation; delayed early linesrefresh_interval value in the in_tail source config
Wildcard path without follow_inodesEntire rotated file re-ingested as duplicates after each rotationfollow_inodes in the in_tail source; check version is >= 1.12.0
pos_file corruption or lossDuplicates (position reset) or gaps (position beyond EOF) after a restartInspect pos_file contents vs actual file sizes and inodes
Rotation not detected at allrotated_file_count flat across scheduled rotations; input rate drops to zero for that sourcerotated_file_count in the monitor agent API
nocreate in logrotateAfter rotation, no new file exists for in_tail to follow; collection stopslogrotate config for nocreate on the affected path
in_tail stop-tailing bugs (older versions)in_tail silently stops following the file after rotation until restartFluentd version; v1.16.2/v1.16.3 fixed significant stop-tailing bugs

Quick checks

# 1. Which rotation method is in play for the affected file?
grep -rE "copytruncate|nocreate|create|delaycompress" /etc/logrotate.d/ /etc/logrotate.conf

# 2. Is rotation being detected at all? (v1.14.1+)
curl -s http://localhost:24220/api/plugins.json | \
  jq '.plugins[] | select(.type=="tail") | {id: .plugin_id, rotated: .rotated_file_count, opened: .opened_file_count, closed: .closed_file_count}'

# 3. Input emit rate for the tail source - drops to zero or spikes at rotation?
#    (requires enable_input_metrics true on Fluentd < v1.19.0)
curl -s http://localhost:24220/api/plugins.json | \
  jq '.plugins[] | select(.type=="tail") | {id: .plugin_id, emit_records: .emit_records}'

# 4. Compare pos_file state to reality: inode and offset per tracked file
cat /var/log/td-agent/td-agent.pos   # adjust path to your pos_file
while IFS=$'\t' read -r filepath pos inode rest; do
  echo "$filepath pos=$pos pos_inode=$inode cur_inode=$(stat -c %i "$filepath" 2>/dev/null || echo MISSING) size=$(stat -c %s "$filepath" 2>/dev/null)"
done < /var/log/td-agent/td-agent.pos

# 5. What do Fluentd's own logs say around the rotation window?
grep -iE "rotation|following tail|detected" /var/log/td-agent/td-agent.log | tail -30

# 6. Current in_tail rotation-related configuration
grep -A20 "@type tail" /etc/td-agent/td-agent.conf | grep -E "rotate_wait|refresh_interval|follow_inodes|read_from_head|pos_file|path"

# 7. Fluentd version - several in_tail rotation bugs are version-specific
fluentd --version

The pos_file format is <filepath>\t<offset>\t<inode>, with the offset and inode stored in hexadecimal; the field order (path, offset, inode) is stable across current and older versions. An inode in the pos_file that does not match the current file’s inode, persisting well beyond rotate_wait, means in_tail has lost the file.

How to diagnose it

  1. Pin down the loss window. In the destination, find a gap or duplicate burst and note the timestamps. Compare them against the logrotate schedule (/etc/cron.daily/logrotate timing, or the container runtime’s rotation settings). Rotation loss correlates tightly with the rotation schedule; a gap at a random time points elsewhere.

  2. Identify the rotation method. Read the logrotate stanza for the affected file. copytruncate means a race condition you cannot fully eliminate, only shrink. create (rename/create) means a timing problem you can fix with rotate_wait and refresh_interval. nocreate means in_tail has nothing to follow after rotation and collection for that file stops; the official documentation notes that nocreate “does not fit the typical application log use cases” because in_tail cannot find a new file to tail.

  3. Classify the symptom: gap or duplicates. A gap at rotation with rename/create points to rotate_wait being too short, or the pos_file being wrong. Duplicates with a wildcard path point to missing follow_inodes true, or to the rotated filename still matching the glob after rotation (a known duplicate-read hazard: once rotate_wait expires and the watcher detaches, the rotated file can be re-discovered by the glob and re-read).

  4. Verify detection with rotated_file_count. Sample it before and after the next scheduled rotation. It should increment on the rotation schedule. If it does not, Fluentd never noticed the rotation, which implicates the watcher (inotify vs stat watcher, wildcard handling, or a version bug) rather than the timing knobs.

  5. Check the pos_file at the moment of loss. If the pos_file position is ahead of the current file size, or the inode is stale long after rotate_wait, in_tail is reading from the wrong place. Positions reset to zero produce full re-reads (duplicates); positions beyond end of file produce gaps.

  6. Check the version against known bugs. Version-specific rotation bugs exist: v1.13.2 fixed remaining lines being discarded on rotation when throttling was enabled, and v1.16.2/v1.16.3 fixed significant bugs where in_tail wrongly stopped tailing after rotation. If you are on anything before v1.16.2 and see tailing stop after rotation, upgrade first and tune second.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
rotated_file_count (in_tail, v1.14.1+)Confirms rotation is detectedNot incrementing on the known rotation schedule
Input emit_records rateThe direct read rate from the tailed filesDrop to zero at rotation, or a step-change spike (re-read)
Output emit_records vs inputSustained divergence means loss or duplicatesGap opening right after each rotation window
tracked_file_count (in_tail, v1.19.0+)Files currently being followedSudden drop at rotation (file lost) or jump (re-discovery storm)
opened_file_count / closed_file_countChurn around rotationOpened count jumping by more than the expected number of rotated files
pos_file offset vs file sizeGround truth for read positionOffset far behind size (lag) or ahead of it (corruption)
Fluentd log rotation messages“detected rotation” and “following tail of” ordering“following tail” logged before “detected rotation”, a signature of the rotation-watcher bugs fixed in v1.16.2/v1.16.3

Fixes

If you can change the rotation method: drop copytruncate

copytruncate is inherently racy. Lines written between the copy and the truncate are gone no matter how you tune Fluentd, and the truncation can trigger a re-read. Switch the logrotate stanza to rename/create (create without copytruncate) and let in_tail follow inodes. This is the single highest-leverage fix.

If copytruncate is forced on you (an application holds the file open and cannot reopen it), accept that a small loss window exists and size it honestly: the window is the time between Fluentd’s last read and the truncate. Keeping Fluentd’s read loop fast shrinks the window but never closes it. Do not build compliance-sensitive pipelines on copytruncate.

Tune rename/create rotation properly

For rename/create rotation, two knobs determine whether the handoff is clean:

  • rotate_wait (default 5s): how long Fluentd keeps reading the old file after rotation. Raise it until it comfortably exceeds the time the application needs to flush its last writes to the old file. There is deliberately no “wait until EOF” option, because for a streaming file EOF is indistinguishable from a pause. Large files rotated with delaycompress have documented data loss when rotate_wait is too short; the maintainer answer on that issue is exactly “set enough rotate_wait.”
  • refresh_interval: how often in_tail scans for files matching the path. If this is long, the new file is discovered late. Keep it short enough that the new file is picked up well within your latency budget.

Wildcard paths: set follow_inodes true

For any path containing * with rotation in play, set follow_inodes true (v1.12.0+). Without it, the rotated file may be re-read from the beginning when the glob re-matches it. Two cautions:

  • If your rotated filenames still match the glob (e.g. rotating app.log to app.log.1 while watching app.log*), the rotated file can be re-discovered and re-read after rotate_wait expires even with follow_inodes. Exclude rotated names from the pattern or rotate to a directory outside the glob.
  • On versions with pos_file bugs, wildcard plus rotation has produced corrupt pos entries (zero inodes) requiring a restart. Keep versions current.

Protect the pos_file

  • Put pos_file on a persistent, reliable filesystem. On tmpfs or an ephemeral container layer, every restart replays or skips everything.
  • Never delete the pos_file while Fluentd is running; positions are lost on the next restart.
  • If you must recover from a corrupted position, stop Fluentd, fix or remove the pos_file entry for the affected file, and start it. Editing offsets by hand is delicate; the safer recovery is usually to delete the single bad entry so that file alone re-syncs.

Version hygiene

If you are on anything before v1.16.2 and rotation misbehaves: upgrade before tuning. Multiple stop-tailing-after-rotation bugs were fixed in v1.16.2/v1.16.3, and v1.14.3 fixed a bug where the beginning and initial lines of newly discovered files could be lost after startup when read_from_head false with a wildcard path. Tuning rotate_wait around a watcher bug is wasted effort.

Prevention

  • Standardize on rename/create for every file Fluentd tails, and audit logrotate stanzas on a schedule. New services appear with default copytruncate configs constantly.
  • Set follow_inodes true and an explicit rotate_wait in every in_tail source, chosen from observed application flush behavior rather than the default.
  • Monitor rotated_file_count against the rotation calendar. Rotation that silently stops being detected is the earliest warning of watcher trouble.
  • Alert on input emit_records anomalies at rotation windows: a drop to zero or a re-read spike at the same time every day is rotation loss until proven otherwise.
  • Keep pos_file on persistent disk and include it in any host or volume provisioning checklist for Fluentd nodes and DaemonSets.
  • Test rotation before trusting a new pipeline. Force a rotation (logrotate -f on a test stanza) and verify in the destination that no lines are missing or duplicated. Do this on a test stanza only: logrotate -f forces rotation of every file in the config you point it at, so never run it against the production /etc/logrotate.conf just to test one source.
  • Track your Fluentd version against in_tail fixes. Rotation handling is one of the most actively fixed areas of the codebase.

How Netdata helps

  • Netdata collects Fluentd monitor agent metrics, so rotated_file_count, opened_file_count, and per-plugin emit_records become time series you can align with the rotation schedule instead of one-off curl samples.
  • Correlating input emit_records with output emit_records on one dashboard makes the post-rotation gap or duplicate spike visible as a divergence at a specific minute, not a vague complaint about missing logs.
  • Anomaly detection on the input rate catches rotation windows where the rate profile deviates from the host’s own history, which is more reliable than a static threshold for this symptom.
  • Process and file-descriptor metrics alongside Fluentd’s plugin metrics help rule out the common lookalike: FD exhaustion stopping new file opens at rotation time.
  • Historical retention lets you compare last night’s rotation against the previous 30 to confirm a gap is periodic (rotation) rather than random (network or destination).