Softwr

Logging · head to head

Cloudflare Workers vs Logstash

Cloudflare Workers logo

Cloudflare Workers

Logging

Serverless compute on Cloudflare's network, free to start and $5 a month minimum on the paid plan

From
Free
Free plan
Yes
Logstash logo

Logstash

Logging

Data Processing Pipeline for Ingestion

From
Free
Free plan
Yes

The short version

  • Logstash is a free and open-source data processing pipeline.
  • Logstash is free; Cloudflare Workers starts at $5/mo.
  • Only Cloudflare Workers lists edge execution; only Logstash lists data ingestion.
  • Where Cloudflare Workers falls short: free has a 10 ms CPU cap.
  • Where Logstash falls short: persistent queues are off by default (queue.type is memory), so in-flight events can be lost on abnormal shutdown unless enabled.

How do Cloudflare Workers and Logstash differ?

Cloudflare Workers and Logstash differ on pricing model and platforms. Only the attributes on which Cloudflare Workers and Logstash actually diverge.

Attributes where Cloudflare Workers and Logstash differ
AttributeCloudflare WorkersLogstash
Pricing modelFree plan plus usage-based paid planOpen-source
PlatformsWeb, Linux, macOS, WindowsWeb, API

Identical on both: starting price (Free), free tier (Yes).

Not yet recorded: category for Cloudflare Workers, founded for Cloudflare Workers.

Which features does each one have?

They share no listed features; 6 appear only for Cloudflare Workers and 9 only for Logstash. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in Cloudflare Workers

  • Edge execution
  • Workers KV
  • Durable Objects
  • Hyperdrive
  • Queues
  • Spend limits

Only in Logstash

  • Data ingestion
  • Event parsing
  • Data transformation
  • Multiple input sources
  • API
  • Webhooks
  • REST
  • Web support

What is each one used for?

Cloudflare Workers is most often brought in for A low-latency API or middleware; Logstash for log monitoring. The jobs each tool is most often brought in to do.

Cloudflare Workers

  • A low-latency API or middlewarenot Logstash
  • A full-stack app with static assetsnot Logstash
  • A cron-driven data jobnot Logstash
  • Rewriting or protecting traffic at the edgenot Logstash

Logstash

  • Log monitoringnot Cloudflare Workers
  • Application performancenot Cloudflare Workers
  • Security analyticsnot Cloudflare Workers
  • Troubleshootingnot Cloudflare Workers

Where do Cloudflare Workers and Logstash fall short?

Cloudflare Workers's most cited limit: free has a 10 ms CPU cap. Logstash's: the dead letter queue only covers the Elasticsearch output and conditional evaluation errors, not other outputs. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Cloudflare Workers

  • Free has a 10 ms CPU cap
  • The runtime is not full Node.js, so some libraries do not run
  • Costs scale with CPU time, so heavy compute surprises
  • Durable Objects and other products are billed separately
  • Logs and Logpush follow separate observability pricing from December 2026

Logstash

  • Logstash's source is dual licensed: code outside the x-pack directory is Apache License 2.0, but code inside x-pack (which carries several of Logstash's monitoring and management features) is licensed under the Elastic License, not a fully open source license
  • Persistent queues are off by default (queue.type is memory), so in-flight events can be lost on abnormal shutdown unless enabled
  • Persistent queues cannot protect inputs without acknowledgement such as tcp and udp, and NFS is not supported for queue storage
  • The dead letter queue only covers the Elasticsearch output and conditional evaluation errors, not other outputs

How much do Cloudflare Workers and Logstash cost?

Cloudflare Workers has a free plan, with paid plans from $5/mo; Logstash is free to use. Plan by plan below, from each vendor's own pricing page.

Cloudflare Workers

Free
  • Workers FreeFree
    • 100,000 requests per day
    • 10 ms CPU per invocation
  • Workers Paid$5/mo
    • 10 million requests included, then $0.30 per million
    • 30 million CPU ms included, then $0.02 per million

Logstash

Free
  • FreeFree
    • Data ingestion
    • Event parsing
    • Data transformation

Which should you pick?

Choose Cloudflare Workers if

  • You need edge execution.
  • You want to start without paying.
  • You work on Web, Linux, macOS, Windows.
  • You also want workers kv.

Choose Logstash if

  • You need data ingestion.
  • You want to start without paying.
  • You work on Web, API.
  • You also want event parsing.

Questions people ask

Is Cloudflare Workers or Logstash better?
It depends on the job. Cloudflare Workers fits a low-latency API or middleware; Logstash fits log monitoring. Cloudflare Workers starts at Free and Logstash at Free.
Which is cheaper, Cloudflare Workers or Logstash?
Cloudflare Workers starts at Free and Logstash at Free.
Does Cloudflare Workers or Logstash run on more platforms?
Cloudflare Workers runs on Web, Linux, macOS, Windows. Logstash runs on Web, API.
Can I use Cloudflare Workers for free?
Both have a free tier, so you can try either at no cost before committing.
What is Cloudflare Workers best used for?
Cloudflare Workers is most often used for a low-latency api or middleware, a full-stack app with static assets, a cron-driven data job, rewriting or protecting traffic at the edge. Of those, a low-latency api or middleware and a full-stack app with static assets are not what Logstash is typically brought in for.
What can Cloudflare Workers do that Logstash cannot?
Cloudflare Workers covers Edge execution, Workers KV, Durable Objects, Hyperdrive. Logstash covers Data ingestion, Event parsing, Data transformation, Multiple input sources.

Answered from the vendors’ own pages

Cloudflare Workers: Is Cloudflare Workers free?

Yes, with 100,000 requests a day.

Logstash: How much does Logstash cost?

Logstash is free and open-source. The data processing pipeline is available to download at no charge and can be deployed without licensing costs or commercial restrictions.

Source
Cloudflare Workers: What does Paid cost?

A $5 monthly minimum plus usage.

Cloudflare Workers: Are static assets charged?

No, they are free and unlimited.

Share

Related pages

Other head to heads