Logstash vs Graylog

Logstash is a pipeline that needs a store, search and alerting behind it. Graylog bundles ingest, search, dashboards and event alerts, but its free Graylog Open edition is SSPL licensed and leaves archiving and correlation to the paid editions.

On this page

Logstash vs Graylog: when each one fits

Choose Logstash when your team wants a separate pipeline in front of a store it already runs or plans to run, and is ready to operate that store on its own. Elastic describes Logstash as an open source server-side pipeline that collects, transforms and sends data to a destination. Elasticsearch is its primary output, though many other outputs are supported. Its filters cover grok parsing, geo lookup from IP addresses and masking of sensitive data, and over 200 plugins cover inputs, filters and outputs. A persistent queue provides at-least-once delivery, and a dead letter queue holds failed events for review and replay. This fits a team that owns its search tier, alerting rules and dashboards, and wants ingest governed as its own component.

Choose Graylog when one product should cover ingest, search, dashboards and alerting, and the team prefers not to assemble those parts itself. Graylog Open accepts syslog, GELF and Beats inputs, routes messages through streams and processing pipelines, and raises alerts from event definitions that can notify PagerDuty, Slack and email. Graylog stores configuration in MongoDB and log data in Graylog Data Node or self-managed OpenSearch, and Graylog recommends Data Node as the search backend. Archiving, correlation, reporting and prebuilt Illuminate detection content sit in the paid Graylog Enterprise or Graylog Security editions. The Graylog pricing page lists Enterprise from 15,000 US dollars per year and Security from 18,000 US dollars per year, each with a minimum of 10 GB per day or 100 Graylog Compute Units, so confirm the volume tier before comparing totals.

The decision turns on four questions. First, whether archiving, correlation and prebuilt detection content are in scope. Graylog provides them only in paid editions, and a Logstash design leaves them to the store behind the pipeline, which you would need to confirm. Second, the license position: Logstash code outside the x-pack folder is Apache 2.0, while x-pack and the default distribution binaries carry the Elastic License, and Graylog Open is licensed under SSPL-1.0, which is not OSI approved. Third, your existing Elastic footprint and operating skills, since a team already running Elasticsearch and Kibana may not want a second search stack. Fourth, if you plan to place Logstash in front of Graylog, confirm the output path first: check which Graylog input accepts your Logstash output, how events are framed, and whether your legal team accepts the Graylog terms for the edition you need.

Logstash or Graylog for each scenario, and the condition that flips it

This table matches common Logstash and Graylog scenarios to the platform that usually fits them, and names the condition that would change the answer. Read each row as a starting point: the fit holds only while the stated condition is true in your environment. Logstash is a data pipeline that feeds a store you already run, while Graylog bundles ingest, search and alerts but needs MongoDB and a search backend.

ScenarioBetter fit and the condition that makes it trueCondition that flips the answer
Pipeline in front of an existing storeLogstash, provided your existing store is Elasticsearch or another output Logstash supports.Graylog, if you also want search, dashboards and alerts on the same ingest path.
One product for ingest, search and alertsGraylog, provided you accept MongoDB and OpenSearch or Graylog Data Node as components, plus Graylog Open's SSPL license.Logstash with a separate search and alerting layer, if your team already runs one and prefers to keep it.
SOC needing correlation or archivingGraylog Enterprise or Graylog Security, because correlation and index archiving sit in the paid editions.Logstash feeding a SIEM backend with correlation, such as OpenSearch Security Analytics, if paid Graylog editions are not an option.
Team already on Elasticsearch and KibanaLogstash, because Elasticsearch is its primary output and the stack already runs it.Graylog, if you want its alerting outside Elastic subscriptions. Confirm which Elastic tier covers the features you need.
Strict open-source license requirementLogstash, using the -oss build, if x-pack modules stay out of your deployment.Graylog Open, only if source-available licensing such as SSPL meets your policy. SSPL is not OSI approved.

How Logstash pipelines and Graylog servers differ in operations

Logstash is a pipeline your team runs on its own hosts in front of a destination, while Graylog adds server nodes, a configuration database and a search backend to operate. The four components below are the parts you back up and upgrade separately, and each card names who typically runs it.

Logstash pipeline on your hosts

The Logstash pipeline is a chain of inputs, filters and outputs that your team configures and runs on its own hosts. Elasticsearch is the primary output, and Logstash has over 200 plugins, including grok parsing and masking of sensitive data in filters. Its persistent queue provides at-least-once delivery, and the dead letter queue holds failed events for review and replay. Back up pipeline configurations and queue settings, and test each upgrade against a copy of production events, since plugin behavior can change between versions and you should confirm support with Elastic before rollout.

Graylog server nodes

Graylog server nodes take in messages through inputs such as syslog, GELF and Beats, route them through streams and processing pipelines, and raise alerts from event definitions. Notifications can go to PagerDuty, Slack and email. Your team operates these nodes, so back up the server configuration along with the MongoDB configuration store, and plan each node upgrade in a test environment after reading the changelog for that release. Confirm the restore path for event definitions before you rely on them, because alerts stop when those definitions are lost.

Graylog changelog

MongoDB configuration store

Graylog keeps configuration and metadata in MongoDB, and the compatibility matrix lists the supported MongoDB range for each Graylog line. This store is a separate system your team must patch, size and back up alongside the Graylog nodes. A lost or mismatched database is a recovery problem even when log data is intact in the search backend, because it holds the configuration that defines your streams and pipelines. Back up MongoDB on its own schedule, test restores on a copy, and check the compatibility matrix before upgrading either MongoDB or Graylog. Confirm who owns the database, since that person sets the patching and restore path.

Compatibility matrix

Search backend for log data

Log data is indexed in a search backend, either Graylog Data Node, which Graylog documents as the recommended option, or self-managed OpenSearch. OpenSearch 1.x is deprecated since Graylog 7.0 and scheduled for removal in Graylog 8.0, so an existing 1.x cluster needs a migration plan before that release. Confirm who runs this layer, your platform team or a storage group, and back up index snapshots and retention settings, since retention deletes the oldest indices. Check the compatibility matrix against your OpenSearch version before every Graylog upgrade, and plan shard capacity against your ingest volume.

Installing Graylog

Logstash hands events to a destination, while Graylog runs its own storage stack

Both paths start at the same log sources. The Logstash path ingests events, applies filters and buffers them in the persistent queue, which provides at-least-once delivery, before sending them to Elasticsearch, the primary output. The Graylog path sends the same sources to Graylog inputs, which pass events to Graylog server nodes. Those nodes keep configuration and metadata in MongoDB and write log data to Graylog Data Node or self-managed OpenSearch. The labeled link from Logstash to Graylog is a possible hand-off that you must confirm against the output plugin and versions in use before you design around it.

Two ingestion paths, with the Logstash-to-Graylog hand-off still to be confirmed.

Logstash vs Graylog feature by feature

This table compares Logstash and Graylog across the features that decide fit: role, license, inputs, delivery, storage, detection, retention and identity. Read each row as a question of scope: Logstash moves and shapes data, while Graylog also stores, searches and alerts. Where a capability is not covered here, the cell names what to confirm in the vendor documentation for your version.

FeatureLogstashGraylog
Primary roleServer-side pipeline that collects, transforms and sends data to a destination such as Elasticsearch.Log management platform that ingests, stores, searches and alerts on logs, using Graylog server nodes plus a search backend.
License and paid tiersMost code is Apache 2.0, but x-pack and the default distribution fall under the Elastic License. Confirm paid tiers with Elastic.Open is SSPL-1.0 (not OSI approved). Enterprise from 15,000 USD and Security from 18,000 USD per year, per the Graylog pricing page.
Inputs, parsing and enrichmentPlugins for inputs, filters and outputs, including grok parsing, IP geo lookup and masking of sensitive data.Syslog, GELF and Beats inputs, routed through streams and processing pipelines. Confirm enrichment options for your version.
Buffering and delivery guaranteesPersistent queue gives at-least-once delivery. Dead letter queue holds failed events for review and replay.Confirm buffering, journaling and delivery guarantees in the Graylog 7.2 documentation before relying on them.
Storage, search and dashboardsDoes not index logs itself. Search and dashboards come from the output, usually Elasticsearch. Confirm any Logstash-side search features for your version.Config in MongoDB. Logs in Graylog Data Node (recommended) or OpenSearch 1.1.x to 3.7.x. Built-in search and dashboards in Open.
Alerting, correlation and detectionPipeline does not alert or correlate. Detection depends on the destination stack; confirm which features apply to your version.Event definitions cover live and historical monitoring, with alerts to PagerDuty, Slack or email. Correlation and Illuminate detection content need Enterprise or Security.
Retention and archivingNot a storage layer, so retention sits with the destination. Confirm the retention and lifecycle options of your output store.Rotation by size, message count or time, deleting oldest indices. Index archiving needs Enterprise or Security.
Identity and single sign-onConfirm SSO and access options for your version. Elastic lists SAML and OpenID Connect SSO under Enterprise for the stack.Confirm which single sign-on methods Graylog 7.2 supports in its documentation before you plan identity integration.
Extensions and installationOver 200 plugins for inputs, filters and outputs. Confirm install method and plugin support for your version.Debian or RPM packages on Ubuntu, Red Hat, SUSE or Debian, or Docker Compose. Confirm extension options for 7.2.

Which Logstash and Graylog licenses carry limits

Logstash does not carry one license, so the build you install determines the terms. Elastic describes Logstash as a server-side pipeline that collects, transforms and sends data, but the default distribution binaries carry the Elastic License, while the -oss binaries are Apache 2.0. Inside the license file, most code outside the x-pack folder is Apache 2.0 and x-pack falls under the Elastic License. Confirm which build and version your team will run before you standardize on it.

  • Default distribution: the default binaries carry the Elastic License, so review that text first if it is your standard install path.
  • -oss binaries: these builds are Apache 2.0 under the license file, which matters if Apache 2.0 is a hard requirement for your organization.
  • Code outside x-pack: most code outside the x-pack folder is Apache 2.0, which is relevant if you plan to modify core pipeline code.
  • Plugins: Elastic says Logstash has over 200 plugins for inputs, filters and outputs, and each plugin's license should be checked before your pipelines depend on it.

Check the license file that ships with your exact build and version, and ask counsel to confirm how the Elastic License applies to any bundling or hosting you plan.

What drives Logstash and Graylog running cost

Graylog Open has no license fee, but paid features and volume tiers set the real license line. The Graylog pricing page lists Graylog Open as free, with no volume limits and community support. Graylog Enterprise starts at 15,000 US dollars per year and Graylog Security at 18,000 US dollars per year, each with a minimum of 10 GB per day or 100 Graylog Compute Units. Both are licensed on processed data with no per-user or per-device fees, so the license bill follows your ingest volume. Logstash has no fixed fee this comparison can state. Most of its code is Apache 2.0, but the default distribution carries the Elastic License, so confirm with Elastic whether your production use needs a subscription. The Elastic subscriptions page shows which features sit in each tier.

Search storage is usually the largest recurring infrastructure line. Graylog needs server nodes, MongoDB for configuration and metadata (MongoDB 7.x to 8.2.x for the 7.0 to 7.2 lines), and either Graylog Data Node, which Graylog recommends, or self-managed OpenSearch from 1.1.x to 3.7.x. Index rotation by message count, size or time, plus retention that deletes the oldest indices, means your retention period translates directly into disk. Logstash nodes hold the persistent queue on disk, and their events land in Elasticsearch or another output you also run. Staff effort differs: Logstash teams spend time on grok patterns, filter tuning and dead letter queue replay, while Graylog teams spend it on streams, processing pipelines, index sets and the MongoDB and search operations behind them. OpenSearch 1.x use has been deprecated since Graylog 7.0 and is removed in 8.0, so older clusters may need an upgrade first.

Separate one-time from recurring costs before you compare totals. One-time work covers architecture, pipeline and parser migration, dashboards, alert rebuilds and cutover testing. Recurring costs are the license or subscription, storage and compute, MongoDB and search cluster operations, on-call time and each upgrade cycle. Before you accept a written quote, ask for: daily ingest in GB checked against the 10 GB per day minimum on Graylog's paid tiers, the retention period for each index set and whether older data is archived (on Graylog, archive restore sits in the Enterprise data lake), a named operator for each component (Graylog server, MongoDB, Data Node or OpenSearch, Logstash, Elasticsearch), the support tier and response scope, and the upgrade path to the Graylog 7.2 line with its matching MongoDB and search versions. Request the same breakdown from Elastic for the Logstash side.

Moving between Logstash and Graylog without losing alerts

This sequence moves log collection from Logstash to Graylog in an order that keeps alerting intact at every stage. The output is a Graylog deployment that receives the same sources, produces matching fields and counts, and fires the alerts your team relies on, with old indices kept for the retention period you choose. Most configuration is rebuilt by hand, so only raw logs carry over, and only when the index layout maps cleanly.

  1. Inventory sources, parsers and downstream alerts

    The platform team lists every Logstash input, each pipeline config file, each filter and output, and every alert or dashboard that reads from Elasticsearch or another destination. Include the dead letter queue and persistent queue settings, because they affect what gets replayed during cutover. Assign an owner to each downstream alert so someone can confirm it later. Done means every source has a parser, a destination and a named alert owner, signed off by the security operations lead.

  2. Map filters onto Graylog inputs and pipelines

    Match each Logstash input to a Graylog input such as syslog, GELF or Beats, then move each filter into a processing pipeline stage. Rewrite every grok pattern for the pipeline syntax your Graylog version accepts, and test it against sample messages from the inventory. Logstash features such as geo lookup from IP addresses and masking of sensitive data need a confirmed Graylog equivalent or a documented gap. Done means a mapping table where each filter has a target, a passing test message and a reviewer's sign-off.

  3. Confirm Graylog and search backend versions

    Check the Graylog 7.2 compatibility matrix against the MongoDB and search backend versions you plan to run. Graylog 7.0 to 7.2 need MongoDB 7.x up to 8.2.x, and the search backend is either Graylog Data Node, which Graylog recommends, or self-managed OpenSearch from 1.1.x up to 3.7.x. Graylog Security also needs OpenSearch 2.0 or later, and OpenSearch 1.x use is deprecated since Graylog 7.0 and will be removed in Graylog 8.0. Done means a signed-off version record naming the Graylog release, the MongoDB version and the backend, checked against the vendor matrix on the day you decide.

  4. Run both paths in parallel and compare

    Point the same sources at Logstash and Graylog at once, so both receive events that are as close to identical as your topology allows, for a period you agree in advance. Compare field names, types, parsed values and event counts per source, and check the Logstash dead letter queue and persistent queue for events it held or dropped. Investigate every mismatch and record whether the cause is a parser gap or a source problem. Done means each source shows matching fields and counts within a tolerance your team approved, with every exception explained.

  5. Rebuild alerts as Graylog event definitions

    Recreate each alert from the inventory as a Graylog event definition, covering real-time and historical monitoring. Logstash only moves and shapes data, so the alert logic lives in downstream tools and must be rebuilt from their queries. Check edition limits first, because correlation and archive restore belong to Graylog Enterprise or Graylog Security. Attach notifications for your on-call process, such as PagerDuty, Slack or email. Run a known incident window through each definition to confirm it fires. Done means every alert in the inventory has a definition, a test fire and a named receiver, recorded in the change log.

  6. Cut over one source at a time

    Switch each source to Graylog only after its parity check passes, starting with the lowest-risk source. Keep Logstash running for that source until the Graylog alerts have fired in production, then retire its pipeline. Raw logs carry over only when the existing index layout maps to Graylog's index model, so plan to rebuild most configuration by hand. Keep the old indices for the retention period you choose, and confirm that retention on the Graylog side applies only to indices it owns. Done means each source has a cutover record, a rollback path and a retention decision agreed by the data owner.

Where Logstash and Graylog projects usually run long

On the Logstash side, most of the effort sits in pipeline configuration. Each source needs an input, the filters that parse it, such as grok, and an output. Elastic describes over 200 plugins across those roles, so plugin versions must be pinned and tested together. Decide early whether queue.type will use the persistent queue, which Elastic says provides at-least-once delivery, and whether dead_letter_queue.enable will hold failed events for review and replay. Someone must own the queue storage and the replay procedure. The destination build is usually Elasticsearch, so index templates, mappings and retention for that cluster are a separate workstream that the written scope must name.

On the Graylog side, the first choices are the install method and the search backend. Graylog can be installed from Debian or RPM packages or with Docker Compose, following the installation guide, and each server node depends on MongoDB for configuration and metadata. Graylog recommends Data Node for log storage. Use of OpenSearch 1.x has been deprecated since Graylog 7.0 and will be removed in Graylog 8.0, so a plan built on 1.x needs a migration step. Storage sizing then follows from index sets, which rotate by message count, size or time and delete the oldest indices under retention. Streams, processing pipelines and event definitions must be rebuilt for each source, so scope that work as carefully as the index design.

Four points tend to run long: source onboarding, parser rewrites, alert rebuilds and storage sizing. Each new source needs a confirmed log format, a parser that is ported or written again, and tests against representative samples before anyone trusts its fields. Alert rebuilds take time because thresholds and notification routes must be re-validated on the new platform's event model. The Graylog Open product page lists PagerDuty, Slack and email as notification targets, so confirm which of your channels the edition you choose supports. Storage sizing needs retention periods from your compliance owner before index sets are fixed. Duration depends on the written scope, so ask for a list of sources, parsers, alerts and retention rules in the statement of work before agreeing to a timeline.

Logstash vs Graylog questions buyers ask before hiring help

How much does it cost to run Logstash compared with Graylog?

Logstash is free to download, and most of its code is Apache 2.0, though the default distribution binaries carry the Elastic License. Its running cost is the hosts it runs on, the destination it feeds and the people who maintain pipelines. Graylog Open is free with no volume limits, but you still run Graylog server nodes, MongoDB and a Data Node or self-managed OpenSearch cluster. Graylog's pricing page lists Graylog Enterprise from 15,000 US dollars per year and Graylog Security from 18,000 US dollars per year, each with a minimum of 10 GB per day or 100 Graylog Compute Units, licensed on processed data with no per-user fees. Storage, compute and engineering time grow with daily volume and retention. DeployOpen does not publish prices, so a quote follows from the written scope, which should state the edition, volume tier and retention period it assumes.

Can our own engineers run Graylog or Logstash without outside help?

Yes, if your team already runs Linux servers, search clusters and pipeline configuration as routine work and can own upgrades. Logstash needs pipeline configuration skills, grok parsing, and tuning for persistent and dead letter queues, plus knowledge of the destination it feeds. Graylog adds MongoDB administration, OpenSearch or Data Node operation, stream and processing pipeline rules, and version matching between Graylog, MongoDB and the search backend. If those skills are thin, a fixed-scope engagement can cover the build, handover and documentation, with the scope agreed in writing before work starts. Before you commit, ask for the upgrade and backup runbook and test a restore.

How long does a Logstash to Graylog migration take?

No standard duration applies, so the timeline is set in the written scope before work starts. The main drivers are the number of log sources, how many pipelines and parsers must be rebuilt, how much historical data must move, how many dashboards, alerts and event definitions must be recreated, and whether both platforms run in parallel during cutover. Logstash pipelines are configuration files, while Graylog uses inputs, streams and processing pipelines, so each parser usually has to be rebuilt and tested before cutover. Parallel running adds time but lowers cutover risk. Ask for the inventory of sources and content in scope, the test plan, the cutover steps and the sign-off point for each stage.

What does the client need to provide for a Logstash or Graylog project?

The client supplies access, decisions and the environment the work runs in. Typical inputs include:

  • Access to the cloud accounts, data center or air-gapped network where the platform will run
  • A list of log sources, their formats and daily volumes
  • Retention and legal hold requirements for each log type
  • Existing Logstash configurations, sample events and any parsers to migrate
  • Named owners for sign-off, identity integration and alert routing

DeployOpen works inside your infrastructure, so your network, identity provider and change process set the pace as much as the platform does. Missing access or unclear retention rules can stall the work, so confirm them early in the written scope.

Can Logstash feed a Graylog input directly?

It depends on the output plugin and the Graylog input type, so confirm both before you design around them. Graylog ingests logs over inputs such as syslog, GELF and Beats, so a common approach is a Logstash output that speaks one of those protocols to a matching Graylog input. Check that the plugin is maintained for your Logstash release and that the input runs on a Graylog version listed in the Graylog compatibility matrix. Test with sample events from production that include multiline logs, timestamps and character encodings, because field names and parsed values can differ between the two platforms. Ask the implementer to record the plugin name, version and input settings in the handover documentation.

Does Graylog Open include SIEM detection features?

Partly. Graylog Open includes event definitions for real-time and historical monitoring, and its product page says notifications can go to PagerDuty, Slack and email. Correlation, index archiving, reporting and prebuilt detection content are paid features. According to Graylog's documentation, correlation and archive restore sit in Graylog Enterprise, while risk scoring, anomaly detection, investigations, compliance packs and prebuilt threat detection content sit in Graylog Security. If your use case depends on correlation across log types, archiving for retention, or vendor-maintained detection rules, price the paid edition into the design and confirm each feature against the edition you buy. Graylog Open is licensed under SSPL-1.0, so have counsel review that license if you plan to offer the platform as a service.

What does it cost to switch from Graylog to Logstash later?

Switching later costs most in rebuilt content and stored data, and the pipeline configuration is usually the smaller share. Logstash pipelines live in configuration files you can version and move, but Graylog streams, processing pipeline rules, event definitions, dashboards and user roles must be exported, rebuilt or recreated on the new platform. Stored data depends on where it sits: Graylog manages storage through index rotation and retention that deletes the oldest indices, so anything you need must be exported before it ages out. If your log destination stays the same, such as one search cluster both platforms can write to, the switch touches fewer components. Ask for an inventory of content to export, the export formats and the cutover plan before you choose a direction.

How DeployOpen helps choose and move between them

DeployOpen is a Chainscore Labs company that plans, implements, integrates, hardens, backs up, upgrades and documents self-hosted open-source platforms inside your own infrastructure. For Logstash vs Graylog, we start from the pipelines and storage you already run, then work through license, edition and operating effort before any build begins. Most engagements are fixed-scope, with the written scope agreed before work starts.

How we scope

  • We list the sources, parsers and destinations each Logstash pipeline or Graylog input must cover.
  • Scope names the Graylog edition, since archiving, correlation and reporting sit in paid tiers.
  • Fixed-scope terms cover the Logstash license position, including the Elastic License on x-pack and default binaries, before build starts.

How we build

  • We configure Logstash pipelines with grok parsing, IP geo lookup and sensitive-data masking where your scope requires them.
  • We set up Logstash persistent queues and dead letter queues, and document replay steps for failed events.
  • For Graylog, we deploy server nodes with MongoDB and Data Node or self-managed OpenSearch, checked against the compatibility matrix.

How we hand over

  • Handover documents each Logstash pipeline config, its queue settings and the dead letter queue replay procedure.
  • For Graylog, handover covers index rotation and retention settings, event definitions and notification channels such as Slack or PagerDuty.
  • Access settings, admin roles and license records are documented for your security and compliance reviewers.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • Upgrade work also covers the move off OpenSearch 1.x, which Graylog deprecated in 7.0.
  • Security testing can cover the ingest paths and access controls for both platforms, as scoped.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.