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 / logstash / logstash-data-dir-lock-another-instance ▌

Operations Guides

Logstash could not be started: another instance is using the configured data.dir

Logstash exits immediately at startup with an error like:

Logstash could not be started because there is already another instance
using the configured data.dir. Please change the value of path.data or
configure a different instance.

The wording varies slightly by version, but the meaning is always the same: Logstash tried to take an exclusive lock on its data directory and failed. This is a hard startup block. No pipeline loads, no events flow, the process exits.

There is a small, enumerable set of causes: a real second process holds the lock, a stale lock survived an unclean shutdown, or two instances were pointed at the same directory by mistake. Figure out which one you have before deleting anything, because deleting the lock while a live instance holds it is exactly the corruption scenario the lock exists to prevent.

What this means

Since Logstash 5.4, the JVM takes an exclusive file lock on a file named .lock inside the directory configured by path.data at startup, using Java NIO FileChannel.tryLock(), which maps to an OS-level advisory file lock. If another process already holds it, tryLock() returns null and Logstash aborts. The lock exists because two instances writing to the same persistent queue, checkpoints, or sincedb files will corrupt each other’s state. Before the lock existed, running two instances against one data directory was a known PQ-corruption path.

Where path.data lives depends on the install:

  • RPM/DEB packages: /var/lib/logstash
  • Official Docker image: /usr/share/logstash/data
  • Tarball/zip: data under the Logstash home directory
  • Anything overridden by path.data in logstash.yml or --path.data on the command line

The file is hidden (leading dot), so a casual ls of the data directory will not show it. This trips people up: they look in the directory, see nothing wrong, and conclude the error is spurious.

Common causes

CauseWhat it looks likeFirst thing to check
Stale .lock after unclean shutdownError appears after a crash, kill -9, OOM kill, node power loss, or a force-killed container. No other Logstash process running.pgrep -f org.logstash.Logstash returns nothing, but .lock exists in path.data.
A real second instance is runningError appears after a config change, package upgrade, or a new service. Another Logstash process is alive and healthy.ps shows two Logstash JVMs, or a duplicate systemd unit / container.
Two instances configured with the same path.dataIntentional multi-instance host where both instances share the default data dir. Common with containers mounting the same host volume.Compare path.data in each instance’s logstash.yml / CLI flags / volume mounts.
Shared or network filesystempath.data on NFS or a shared mount; lock behavior is unreliable and the holder may be on another host you cannot see locally.findmnt on the data directory; check whether another host mounts the same export.

Quick checks

All read-only and safe.

# 1. Is any Logstash JVM actually running on this host?
pgrep -af org.logstash.Logstash
# or
ps aux | grep '[o]rg.logstash.Logstash'

# 2. What does the service manager think?
systemctl status logstash

# 3. Does the lock file exist, and how old is it?
ls -la /var/lib/logstash/.lock        # adjust to your path.data
stat /var/lib/logstash/.lock

# 4. Which process (if any) has the lock file open?
lsof /var/lib/logstash/.lock
fuser -v /var/lib/logstash/.lock

# 5. In containers: is another container mounting the same volume?
docker ps --format '{{.Names}} {{.Mounts}}' | grep logstash

# 6. Is path.data on a network or shared filesystem?
findmnt -T /var/lib/logstash

Interpretation notes:

  • If step 1 shows a live process, stop here. The lock is doing its job. Do not delete the file.
  • lsof/fuser on the .lock file is the most direct evidence of a local holder. An empty result plus an existing file plus no Logstash process points at a stale lock.
  • stat gives you mtime. A .lock whose timestamps predate the last crash is consistent with a leftover.
  • The kernel releases OS-level file locks when the holding process dies, even on kill -9. A truly stale lock from a dead local process is rarer than people assume; more often the “stale” case is a holder in another mount namespace or container, a holder on another host via NFS, or version-specific lock handling. Treat “the process is definitely gone” as something to prove, not assume.

How to diagnose it

Work through these in order. The goal is to distinguish “live holder” from “leftover” before touching anything.

  1. Confirm no local Logstash process exists. Use pgrep -af org.logstash.Logstash, not just systemctl status. A manually started instance, a second unit (logstash@foo.service), or a containerized instance on the same host will not show in the default unit’s status.

  2. Check containers and other namespaces. A container with a host-path volume mounted at path.data holds the lock from inside its own namespace. pgrep on the host still sees the Java process, but operators miss it because they are thinking in terms of the systemd unit. Check docker ps and pod status on the node.

  3. Check for a remote holder on shared storage. If findmnt shows NFS or another network filesystem under path.data, the holder may be a Logstash on a different host. No local command will show it. Check your inventory: is any other node configured with the same data path?

  4. Correlate with the last shutdown. Pull the end of the previous run: journalctl -u logstash --since "-2 hours" and, for OOM kills, journalctl -k or dmesg. If the last shutdown was an OOM kill, SIGKILL, or node failure, the stale-lock explanation gains weight. If it was a clean SIGTERM, look harder for a live holder.

  5. Only now decide: remove the lock, or fix the configuration. If you found a live holder or a duplicate config, the lock file is innocent and deleting it changes nothing.

flowchart TD
  A[Startup fails: data.dir lock error] --> B{Logstash process running anywhere?}
  B -->|Yes, local| C[Duplicate instance or service - stop it, do not delete .lock]
  B -->|Yes, in container| D[Container holds lock via mounted volume - stop container or fix mounts]
  B -->|No local process| E{path.data on shared/network FS?}
  E -->|Yes| F[Check other hosts mounting the same path - remote holder]
  E -->|No| G{Last shutdown unclean? crash, kill -9, OOM}
  G -->|Yes| H[Verify with lsof/fuser that nothing holds .lock, then remove stale .lock]
  G -->|No| I[Recheck: hidden second unit, cron job, orchestrator restart loop]

Metrics and signals to monitor

Once Logstash is back up, a few signals tell you whether the underlying cause (usually an unclean shutdown) will recur:

SignalWhy it mattersWarning sign
JVM uptime (jvm.uptime_in_millis from /_node/stats/jvm)Detects unexpected restarts. Every restart after an unclean kill is another chance to hit this lock on the next boot.Uptime resetting without a planned deploy.
Process liveness and restart countCrash loops and orchestrator restarts are the usual path to unclean exits. In containers, watch restart count, not just current state.Restart count climbing; uptime repeatedly minutes-long.
Kernel OOM kills (journalctl -k, dmesg)OOM is the most common cause of the unclean shutdown that precedes this error.OOM messages naming the Logstash JVM.
JVM heap post-GC floor and GC overheadRising old-gen floor and GC time over 20% of wall time precede the OOM or GC death spiral that leads to a force-kill.Post-GC floor climbing toward old-gen max.
PQ checkpoint and startup log errors after restartThe same unclean shutdown that strands the lock can damage PQ pages and checkpoints, the next startup failure you will hit.IOException or checkpoint errors in logstash-plain.log at startup.

Fixes

Stale lock, no live process

Once you have positively confirmed nothing holds the lock (steps 1-4 above):

# DESTRUCTIVE if a live instance exists. Verify first with lsof/fuser.
rm /var/lib/logstash/.lock
systemctl start logstash

Then watch startup: journalctl -u logstash -f. A clean start loads pipelines within a minute or two on most hosts. If it fails again with checkpoint or page errors, the unclean shutdown also damaged the persistent queue. That is a separate recovery path; see the PQ corruption guide linked below.

A real duplicate instance

Find why two things are trying to run Logstash:

  • A hand-started debugging process that was never stopped: kill it cleanly (SIGTERM) and let systemd own the service.
  • A duplicate unit or an old init script alongside systemd: disable and remove one.
  • Two containers scheduled onto the same node with the same hostPath volume: fix the volume layout so each instance gets its own data directory. Per-instance path.data is the supported way to run multiple instances on one host.

Two intentional instances, one data dir

Give each instance a distinct path.data, either in its own logstash.yml or via --path.data. Note that running multiple pipelines does not require this: pipelines defined in pipelines.yml share the single instance’s data directory and one lock, which is fine. The one-lock-per-data-dir rule applies to JVM processes, not pipelines.

Containers with persistent volumes

If a container was force-killed, the .lock persists in the mounted volume because the volume survives the container. Delete the file on the host (same verification rules apply) or handle cleanup in an entrypoint wrapper. The cleaner fix is a real termination grace period so Logstash shuts down on SIGTERM instead of being SIGKILLed at the deadline, which avoids both the stale lock and PQ corruption in one move.

NFS or shared storage under path.data

Java file locking over NFS is historically unreliable: locks can fail spuriously or appear to succeed when another host holds them. If you must keep path.data on NFS, verify holders across all mounting hosts before removing anything. The operationally saner answer is local disk for path.data. NFS under the persistent queue also amplifies drain and recovery times, so this aligns with PQ guidance generally.

Prevention

  • Stop Logstash cleanly. SIGTERM and an adequate stop timeout (TimeoutStopSec in the unit, termination grace period in Kubernetes) let Logstash release the lock and checkpoint the PQ. Reserve SIGKILL for a genuinely hung process.
  • Fix the OOM that caused the crash. If the unclean shutdown was an OOM kill, size the heap honestly: -Xms equal to -Xmx, and keep heap to roughly half of system memory so off-heap and page cache have room. Monitor the post-GC floor, not raw heap percent.
  • One data dir per instance, everywhere. Make it a config-management invariant: no two units, containers, or hosts ever share path.data. For containers, that means distinct volumes per replica, never a shared hostPath.
  • Alert on unexpected restarts. JVM uptime resets and container restart counts are cheap signals that surface the crash before the lock error. Catching the first unclean exit beats debugging the lock at the second one.
  • Keep path.data on local disk unless you have a specific reason and have tested failover behavior.

How Netdata helps

Netdata will not unlock the file, but it shortens the path to understanding why the error keeps coming back:

  • Process and uptime tracking for the Logstash JVM makes unexpected restarts and crash loops visible immediately, the leading indicator for stale-lock incidents.
  • JVM heap and GC correlation (heap used, per-pool old-gen pressure, GC time versus wall clock) shows whether the previous death was memory-driven, so you fix the OOM instead of deleting the lock each time.
  • Container restart counts and cgroup memory on the node surface force-killed containers and OOM events that systemd-level checks miss.
  • Node Stats API collection (pipelines, JVM, process stats from port 9600) gives post-recovery confirmation that pipelines actually came back and are draining the persisted queue, not just that the process exists.
  • Alerting on the startup error string turns “Logstash has been down since 3 a.m.” into a page at the first failed start, which matters because this error is a total outage with zero event flow.