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-duplicate-events ▌

Operations Guides

Fluentd duplicate events: why the same log shows up twice downstream

You query Elasticsearch, S3, or your log backend and the same event appears twice. Sometimes the duplication is a burst that lines up exactly with a Fluentd restart or a pod reschedule. Sometimes it is a slow, persistent trickle that inflates dashboards and breaks counts. The two situations have different root causes and different fixes.

Fluentd does not guarantee exactly-once delivery. It guarantees at-least-once for file-backed buffers, and the brief duplication window after a restart is by design. Persistent or large-scale duplication almost always traces back to one of a small set of mechanisms: position tracking resets at the input, or full-chunk retries at the output after a partial write.

What this means

Every event in Fluentd moves through Input -> Parser -> Filter chain -> Buffer -> Output. Duplicates are introduced at the two ends of that path:

  • At the input: in_tail re-reads data it already read because its position tracking (pos_file) was reset, corrupted, deleted, or confused by log rotation and wildcard paths.
  • At the output: a chunk that was partially delivered is retried in full, so the destination stores the already-delivered records a second time.

The buffer in the middle is mostly a messenger: file-backed buffers replay unflushed chunks after a restart, which re-sends anything that was flushed to disk but not confirmed delivered. That replay is the at-least-once guarantee working as intended.

The diagnostic question is always: does the duplication correlate with restarts and rotation events (input-side or replay), or does it correlate with output retries and destination instability (output-side)?

flowchart TD
  A[Duplicates seen downstream] --> B{Correlates with Fluentd restart or pod reschedule?}
  B -- yes --> C[File buffer replay of unflushed chunks - expected brief window]
  B -- no --> D{Correlates with logrotate schedule or rotation events?}
  D -- yes --> E[in_tail re-read: pos_file reset, wildcard path without follow_inodes, or copytruncate race]
  D -- no --> F{retry_count or rollback_count incrementing on output?}
  F -- yes --> G[Partial write then full-chunk retry - classic with Elasticsearch bulk API]
  F -- no --> H[Check pos_file integrity, pos_file on tmpfs, read_from_head config]

Common causes

CauseWhat it looks likeFirst thing to check
File buffer replay on restartA bounded burst of duplicates right after each Fluentd restart, pod reschedule, or deploy; volume matches the unflushed backlogProcess uptime vs duplicate timestamps; buffer queue draining right after startup
pos_file deleted, corrupted, or on tmpfsEntire files re-read after restart; duplicates span the full history of tailed filesls -la and contents of the pos_file; whether it sits on tmpfs or an ephemeral container layer
Wildcard path with log rotationDuplicates appear at rotation time (e.g., daily at midnight), from files matched by * or strftime patternsrotated_file_count increments aligned with duplicate timestamps; follow_inodes setting
copytruncate rotationSmall duplicate windows around rotation, or mixed duplicates and gapslogrotate config for copytruncate; inode in pos_file vs current file inode
Elasticsearch bulk partial successSteady duplicate trickle during ES congestion (429s, rejections); duplicates share content but have different _idretry_count and rollback_count on the ES output; ES-side rejected-write metrics
out_forward shutdown/ack race (pre-v1.12.2)Duplicates at forward receivers after every Fluentd restartFluentd version; upgrade if below v1.12.2

Quick checks

These are read-only and safe to run during an incident. Paths shown are for td-agent; adjust for fluent-package (/var/log/fluent/, /etc/fluent/) or your container layout.

# 1. How long has the process been up? Restart correlation is the fastest triage.
ps -o pid,etime,cmd -p $(pgrep -f fluentd | head -1)

# 2. Are output retries happening? Non-zero retry/rollback points at output-side duplication.
curl -s http://localhost:24220/api/plugins.json | \
  jq '.plugins[] | select(.plugin_category=="output") | {id: .plugin_id, retries: .retry_count, rollbacks: .rollback_count, writes: .write_count}'

# 3. Inspect the pos_file: does it exist, where does it live, are offsets sane?
grep pos_file /etc/td-agent/td-agent.conf
ls -la /var/log/td-agent/*.pos 2>/dev/null
df -T /var/log/td-agent/   # tmpfs here means positions die on reboot

# 4. Compare pos_file offsets against actual file sizes.
while IFS=$'\t' read -r filepath pos inode rest; do
  actual=$(stat -c%s "$filepath" 2>/dev/null || echo MISSING)
  echo "$filepath pos=$pos actual=$actual inode=$inode"
done < /path/to/your.pos

# 5. Is rotation happening, and does it line up with duplicates? (v1.14.1+)
curl -s http://localhost:24220/api/plugins.json | \
  jq '.plugins[] | select(.type=="tail") | {id: .plugin_id, rotated: .rotated_file_count}'

# 6. Check Fluentd's own log for flush failures and retries around the duplicate window.
grep -E "failed to flush|retry|temporarily failed" /var/log/td-agent/td-agent.log | tail -30

For check 4, the pos_file column order is path, position (stored in hex), inode. If positions reset to zero after every restart, the pos_file is not persisting.

How to diagnose it

  1. Bound the duplication in time. Pull the timestamps of duplicated events downstream. Clustered in a short window points at restart replay or a rotation event; spread continuously points at ongoing output retries or a persistent input misconfiguration.

  2. Correlate with restarts. Compare the duplicate window against process uptime, deploy times, and (in Kubernetes) pod restart events. If every restart produces a duplicate burst whose size roughly matches the pre-restart buffer backlog, you are looking at file buffer replay. That is expected behavior. See Fluentd CrashLoopBackOff if restarts themselves are the problem: frequent restarts turn a small design-window duplication into a constant one.

  3. Check whether replay volume is abnormal. Right after a restart with file-backed buffers, a high buffer_queue_length that drains as write_count increments is the backlog being re-sent, and it is healthy. If duplicates vastly exceed the plausible backlog, move on to the input side.

  4. Verify pos_file persistence and integrity. If the pos_file is on tmpfs, in a container writable layer wiped on reschedule, or was deleted, in_tail loses all positions. What happens next depends on read_from_head: with true it re-reads everything (massive duplicates); with false on older versions it skips to the end (gaps). Also confirm you are not sharing one pos_file between multiple in_tail configurations, which corrupts position tracking.

  5. Check the rotation interaction. If duplicates align with the logrotate schedule, check: (a) does the in_tail path use * or strftime? By default, wildcard paths combined with rotation cause duplication, and the documented fix is follow_inodes true; (b) is rotation using copytruncate? The copy-then-truncate sequence has an inherent race window where in_tail can re-read or miss lines; (c) is rotate_wait (default 5s) long enough for the last writes to be read before the old file is closed?

  6. Check the output side for partial-write retries. If duplicates are continuous and the destination is Elasticsearch, look at retry_count and rollback_count on the ES output and at ES bulk rejections. The bulk API can return success for the request while rejecting individual documents (for example during cluster congestion with 429s). Fluentd retries the whole chunk, and the documents that succeeded get indexed again under new generated IDs. The signature: duplicate records with identical content but different _id values.

  7. Check versions for known duplication bugs. On Fluentd before v1.12.2, an out_forward shutdown/ack race caused duplicate delivery on restart (fixed in v1.12.2: “prevent transferring duplicate logs on restart”). follow_inodes itself had a duplication bug (wrongly unwatching files) that was fixed in v1.16.2, so enabling it on v1.16.1 or earlier may not fully solve wildcard duplication; v1.16.3 and v1.16.4 fixed adjacent rotation-watcher bugs (a stall with follow_inodes disabled, and unmanaged rotate_wait watchers).

Metrics and signals to monitor

SignalWhy it mattersWarning sign
Process uptime / restart eventsRestart is the trigger for buffer replay and pos_file lossFrequent restarts converting a small duplicate window into constant duplication
retry_count (per output)Non-zero means chunks are being re-sent; each re-sent chunk can re-deliver records to a partially-written destinationAny sustained non-zero value
rollback_count (per output)Chunks that failed mid-flush and went back to the queue; includes partial-write failuresSustained increments, especially with an Elasticsearch output
buffer_queue_length right after restartDistinguishes healthy backlog drain from abnormal replayQueue that does not drain, or duplicates far exceeding the backlog size
rotated_file_count (in_tail, v1.14.1+)Rotation events are when pos tracking and wildcard watching go wrongDuplicate timestamps clustered around rotation increments
Input emit_records rateA sudden spike can be in_tail re-reading whole files after a position resetStep-change spikes aligned with restarts or rotation
write_count vs emit_records gapQuantifies how much was re-delivered vs newly delivered during an incidentOutput emit exceeding input emit during recovery windows

Input emit_records requires enable_input_metrics true in <system> on Fluentd before v1.19.0; without it the counter reads zero. See Fluentd input emit_records stuck at zero.

Fixes

Buffer replay duplicates after restart

There is no config that makes file-buffer replay exactly-once; at-least-once is the design. What you can do:

  • Fix the restart frequency. If duplicates are constant because Fluentd restarts constantly, treat the restarts as the incident (OOM, crash loop, config reload failures). The duplication is a symptom.
  • Deduplicate downstream. Give records a deterministic document ID at the destination so replays overwrite instead of duplicating. For Elasticsearch, the elasticsearch_genid filter (bundled with fluent-plugin-elasticsearch) generates a _hash per record; setting id_key _hash on the output uses it as the document _id. Hash semantics matter: by default the hash is a random UUID generated when the record first passes the filter, so chunk retries reuse the same _hash and are idempotent, but a restart replay that re-runs the filter produces a new _hash and is not deduplicated. With use_record_as_seed true, the hash derives from the configured record_keys (plus optional tag/time), so a record whose seed fields change between attempts gets a different hash.
  • Accept memory buffers only where loss beats duplication. Memory buffers drop unflushed data on restart instead of replaying it. That trades duplicates for gaps, which is rarely the right trade.

pos_file resets

  • Put the pos_file on persistent, reliable storage. In containers, mount a persistent volume for it; never leave it on tmpfs or the container layer.
  • One pos_file per in_tail source. Never share.
  • On versions with pos_file_compaction_interval (v1.9.2+), enable it for dynamic paths so stale entries do not accumulate.

Wildcard paths and rotation

  • Set follow_inodes true when path contains * or strftime patterns and rotation is in play. Be aware of the pre-v1.16.2 bug if you are on an older release.
  • Prefer rename/create rotation over copytruncate. If you are stuck with copytruncate, a small duplicate-or-gap window at each rotation is a known limitation.
  • Increase rotate_wait beyond the default 5s if the application or rotator writes slowly after the rename.

Elasticsearch partial-success retries

  • Add the elasticsearch_genid filter plus id_key _hash as described above. This is the standard fix for bulk partial-success duplication.
  • Reduce the retry pressure that causes partial failures in the first place: watch flush_time_count / write_count (average flush time) and slow_flush_count for early signs of ES congestion before rejections start. See Fluentd failed to flush the buffer.

Prevention

  • Pin versions deliberately. Run v1.12.2 or later for the forward ack fix, and v1.16.2 or later if you rely on follow_inodes. Test rotation behavior after any Fluentd upgrade; teams routinely verify basic flow and never test what happens when logrotate runs.
  • Make idempotency a destination property. Wherever the destination supports it (document IDs in Elasticsearch, object keys in S3), derive the ID deterministically from record content so any retry or replay converges instead of duplicating.
  • Alert on retry and rollback counters, not just buffer depth. Retries are the duplication engine on the output side; catching them early bounds the duplicate volume.
  • Treat restart count as a first-class metric. Every restart has a duplicate cost. Crash loops and OOM cycling are also duplication incidents.
  • Audit pos_file placement in every new deployment, especially Kubernetes DaemonSets where a missing volume mount silently turns every pod reschedule into a full re-read or a gap.

How Netdata helps

  • Netdata collects the Fluentd monitor_agent counters per output plugin: retry_count, rollback_count, write_count, and buffer depth, so the output-side duplication signature (retries climbing while duplicates appear) shows up directly on a timeline.
  • Process uptime and restart events sit next to pipeline metrics, making the restart-replay correlation a visual check instead of a log dig.
  • Input vs output emit_records rates side by side expose re-read spikes (input surge after a position reset) and re-delivery surges (output exceeding input during backlog drain).
  • rotated_file_count and in_tail metrics on supported versions let you overlay rotation events with the duplicate timestamps you found downstream.
  • Anomaly detection on these counters flags the slow-trickle case (a low, steady duplicate rate from partial-write retries) that threshold alerts tend to miss.