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-poison-pill-crash-loop ▌

Operations Guides

Fluentd poison pill crash loop: one bad log line that kills the process on every restart

Fluentd is restarting every few seconds. The service comes up, CPU spikes to 100 percent almost immediately, the process dies, systemd (or Kubernetes) restarts it, and the cycle repeats. Input throughput is effectively zero, but the process is “running” most of the time, so a naive process-alive check flaps between green and red without telling you anything.

This is the poison pill pattern: a single malformed log line that hangs or crashes the parser. Fluentd dies, the supervisor restarts it, in_tail resumes from the last recorded offset in its pos_file, reads the same bad line again, and crashes again. Because the crash happens before Fluentd advances its read position past the offending line, the process is trapped at one byte offset forever.

The distinguishing feature versus a generic crash loop is determinism: the crash happens at the same pos_file position every time, within seconds of startup, with an immediate CPU spike. This article covers how to confirm that signature, how to find the bad line, and how to get the pipeline moving without losing everything behind it.

What this means

Fluentd’s in_tail plugin tracks its read position per watched file in a pos_file, so restarts do not re-read or skip data. That durability is normally a feature. Here it becomes the trap: the parser crashes before the position is updated past the bad line, so every restart replays the crash.

flowchart LR
  A[Application writes bad log line] --> B[in_tail reads line]
  B --> C{Parser handles it?}
  C -->|no: regex hang or crash| D[Process dies]
  D --> E[Supervisor restarts Fluentd]
  E --> F[in_tail resumes from pos_file offset]
  F --> B
  C -->|yes| G[Event emitted, pos advances]

The crash itself takes one of three forms:

  • Hang: catastrophic regex backtracking. The Ruby regex engine tries exponentially many match combinations against a malformed line and never returns. CPU pins at 100 percent on one core. Depending on your supervisor and any watchdogs, the process is eventually killed or just stops making progress.
  • Crash: an unhandled exception in parsing, such as a stack-level error on deeply nested JSON or an encoding error on invalid UTF-8 bytes written into the log file by a misbehaving application.
  • Silent stall: a multi-line regex waiting for a terminator that never comes on an extremely long “line”, blocking the read loop.

In Kubernetes, this surfaces as CrashLoopBackOff with very short run durations. On systemd-managed hosts, it surfaces as a rapidly incrementing restart counter. Either way, downstream log delivery for the whole node stops, because the poisoned input blocks the worker.

Common causes

CauseWhat it looks likeFirst thing to check
Catastrophic regex backtrackingCPU at 100 percent on one core, process hangs or is killed, crash always at the same positionTest the parser regex against the suspect line with Rubular or fluentular
Malformed or deeply nested JSONParse exception or stack error in the Fluentd log at each restartInspect the exact bytes at the pos_file offset in the source file
Invalid UTF-8 in log lineEncoding error (invalid byte sequence) in the Fluentd log; line written by an application emitting binary dataHex-dump the suspect region of the log file
Multi-line regex on an extremely long lineRead loop stalls, no crash, input emit rate drops to zero for that sourceCheck line lengths in the source file around the pos_file position

Quick checks

These are read-only. Run them in order; each narrows the picture.

# 1. Confirm the rapid restart cycle
systemctl status td-agent          # td-agent package
systemctl status fluentd           # fluent-package
journalctl -u td-agent --since "10 minutes ago" | grep -iE "started|stopped|failed"

A restart every few seconds to a couple of minutes is the poison pill cadence. A one-off crash is something else.

# 2. Find the crash reason in Fluentd's own log
grep -iE "error|exception|invalid byte|stack level|backtrace" /var/log/td-agent/td-agent.log | tail -30
# fluent-package:
grep -iE "error|exception|invalid byte|stack level|backtrace" /var/log/fluent/fluentd.log | tail -30

Look for the same exception class repeating once per restart. Encoding errors and deep-nesting stack errors are the classic signatures.

# 3. Rule out OOM as the killer
dmesg | grep -i oom | tail -5

If the OOM killer is doing the killing, you are in the memory-bloat archetype, not the poison pill archetype. See Fluentd monitoring checklist: the signals every production log pipeline needs for the memory pattern.

# 4. Watch CPU on startup: poison pill spikes immediately
top -b -n 3 -d 2 -p $(pgrep -f fluentd | head -1)

CPU pinning to 100 percent of one core within seconds of startup, before any real throughput, is the backtracking signature. Because of the Ruby GVL, one busy thread blocks the whole worker.

# 5. Locate the pos_file and find the stuck position
grep pos_file /etc/td-agent/td-agent.conf     # or /etc/fluent/fluentd.conf
cat /var/log/td-agent/<your>.pos

The pos_file is a plain text file: one line per watched file, containing the file path, the read position, and the inode, with the position and inode recorded in hex. If the recorded position is identical after every restart and the crash happens while parsing, that offset is where your poison pill lives.

# 6. Read the bytes at the stuck offset (substitute path and hex position)
dd if=/var/log/app/app.log bs=1 skip=$((0x<hexpos>)) count=4096 2>/dev/null | cat -v | head -40

cat -v makes non-printing and invalid-UTF-8 bytes visible. You are looking for the line that differs from everything around it: binary garbage, an abnormally long line, or JSON nesting that runs off the screen.

How to diagnose it

  1. Confirm the loop is deterministic. From the checks above, verify three things hold simultaneously: restart interval is short and regular, the pos_file position is unchanged across restarts, and the same error (or the same 100-percent-CPU hang) appears each cycle. If any of these fails, you have a different failure archetype.

  2. Extract the poison line. Use the dd command from check 6, or open the source log file and jump to the recorded offset. The poison line is at or immediately after the saved position, since Fluentd records the position after successfully processing a line.

  3. Identify the failure mode. Match the log evidence:

    • Repeated invalid byte sequence in UTF-8 or similar encoding errors: encoding poison.
    • No exception at all, just a hang at 100 percent CPU: regex backtracking. Take the parser regex from your <parse> block and test it against the extracted line with Rubular or fluentular. If the tester hangs, confirmed.
    • Stack-level or JSON parse errors: malformed or pathologically nested JSON.
  4. Check blast radius. If this Fluentd instance handles multiple inputs, the crashed worker takes all of them down, not just the poisoned one. In multi-worker mode, in_tail must be pinned to one worker via <worker N> (each worker runs its own copy otherwise, and duplicates reads of the same files); the poisoned input, its monitor_agent port, and its log lines all belong to that worker.

  5. Decide the recovery strategy (next section): skip the line or filter it, then fix the parser so the class of line can never kill the process again.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
Process alive / restart countThe crash loop itselfRestarts every few seconds; sustained-oscillation pattern rather than one clean absence
Monitor agent responsiveness (GET /api/plugins.json on port 24220)Distinguishes “hung on backtracking” from “crashed”Process exists but the endpoint times out, then the process disappears
Input emit_records rateConfirms ingestion is stalled at the poisoned positionFlat counter across restarts; on versions before v1.19.0 input metrics are off by default and need enable_input_metrics true in <system> (enabled by default since v1.19.0)
Process CPU per workerBacktracking pins one core via the GVL100 percent single-core CPU within seconds of every startup, before throughput
in_tail position lag (pos_file position vs file size)Tells you how much data is piling up behind the stuck offsetGap growing linearly while the loop runs
Process RSSRules the memory archetype in or outMonotonic growth across restarts suggests OOM, not poison pill

Fixes

Do these in order. The first two get logs flowing again; the rest make sure it cannot recur.

Advance the pos_file past the bad line

This is the direct unblocking move and it deliberately sacrifices the one poisoned line. Stop Fluentd before editing the pos_file, or the running process may overwrite your change on shutdown.

  1. Stop the service: systemctl stop td-agent (or fluentd).
  2. Back up the pos_file: cp file.pos file.pos.bak.
  3. Edit the hex position for the affected file to a value just past the end of the bad line. You can compute the target offset from the dd inspection: offset of the bad line plus its byte length.
  4. Start the service and watch input emit_records and the Fluentd log to confirm it is processing past that point.

An alternative that avoids hand-editing hex: temporarily move the source log file aside (mv app.log app.log.poisoned), restart Fluentd so it starts a fresh file, then re-ingest or archive the quarantined file after the parser is fixed. The tradeoff is the same: events written while the file is moved are handled differently depending on how the application reopens its log, so prefer the pos_file edit when the application holds the file open.

Data-loss note: either approach skips the bad line and possibly a few lines around it. That is almost always the right trade against an indefinitely down pipeline, but record the skipped offset range in the incident notes.

Exclude the pattern with a grep filter

If the poison line matches a recognizable pattern (a specific error signature, a known binary prefix), add a grep filter that drops it before it reaches a fragile downstream parse step. The deprecated excludeN style is gone in modern configs; use directive blocks:

<filter app.**>
  @type grep
  <exclude>
    key message
    pattern /KNOWN_BAD_SIGNATURE/
  </exclude>
</filter>

Tradeoff: this is a targeted drop rule, and it only protects stages after the filter. If the crash happens in the input’s own <parse> block, the grep filter cannot help, because parsing happens before filtering. In that case the pos_file advance plus the parser fix is the only path.

Fix the regex

If backtracking is the cause, the regex is the bug. Rewrite the offending alternation or nested quantifier so match time stays linear, and test the new pattern against the actual poison line plus a sample of normal lines before deploying. Never deploy a parser regex change untested. Long term, prefer structured formats (JSON) over regex parsing for sources you control, and cap line length for sources you do not.

Bound the read loop

Two guardrails limit how much damage one pathological input can do per cycle:

  • read_lines_limit caps how many lines in_tail processes per I/O operation (default 1000). Lowering it reduces how hard a backtracking hang bites per cycle, at the cost of slightly slower catch-up on healthy files.
  • max_line_size (available since v1.14.4) skips lines longer than a set threshold. This neutralizes the “extremely long line” class of poison pill outright, at the cost of silently dropping legitimately huge log lines if you set it too low.

Prevention

  • Test parser regexes against hostile input. Any regex with nested quantifiers or ambiguous alternation should be exercised against truncated, concatenated, and binary-corrupted samples, not just well-formed lines.
  • Prefer structured logging at the source. Applications that emit JSON remove most of the regex attack surface. Keep a regex parser only where you cannot change the emitter.
  • Set max_line_size on high-volume tail inputs where supported, sized above your largest legitimate line.
  • Alert on restart cadence, not just liveness. A process that restarts every 20 seconds is “alive” to most checks. Track the restart rate and the input emit_records flatline so the loop pages someone in minutes, not after a downstream gap is noticed.
  • Protect the pos_file. It is a plain text file with no checksums. Keep it on a reliable filesystem, and treat unexplained position resets as an incident, since corruption produces duplicate reads or gaps that look nothing like a crash loop.
  • Watch input emit rates per source. A flat input counter on one source while others flow is the earliest indicator of a stuck read loop, even when the process has not crashed yet.

How Netdata helps

  • Per-process CPU and uptime curves make the loop visible at a glance: sawtooth uptime and a 100 percent single-core spike on every start, which is the backtracking signature.
  • Process restart counting distinguishes a crash loop from a one-off OOM or deploy restart without log spelunking.
  • Correlating Fluentd’s input throughput against the process lifecycle shows the flatline between restarts, confirming ingestion is stalled at a fixed position.
  • RSS trends alongside restart events separate the poison pill pattern (flat memory, CPU-driven death) from the memory-bloat OOM pattern (monotonic growth before death).
  • Alerts on process liveness with sustained-failure gating catch the loop without paging on every transient restart.