Softwr

Logging · head to head

Fluentd vs MQTT

Fluentd logo

Fluentd

Logging

Open Source Data Collector for Unified Logging

From
Free
Free plan
Yes
MQTT logo

MQTT

Networking

Lightweight messaging protocol for IoT devices

From
Free
Free plan
Yes

The short version

  • Fluentd is an open-source data collector.
  • Both are free.
  • Only Fluentd lists log collection; only MQTT lists QoS Levels.
  • Where Fluentd falls short: Fluentd needs more than 60 MB of memory at runtime, against roughly 450 KB for Fluent Bit.
  • Where MQTT falls short: MQTT is an open-source protocol standard with no commercial pricing; not a commercial product.

How do Fluentd and MQTT differ?

Fluentd and MQTT differ on platforms, category (Logging against Networking) and year founded (2011 against 1999). Only the attributes on which Fluentd and MQTT actually diverge.

Attributes where Fluentd and MQTT differ
AttributeFluentdMQTT
PlatformsWeb, APIAny platform, Embedded devices, Web, Browser extension
CategoryLoggingNetworking
Founded20111999

Identical on both: starting price (Free), pricing model (Open-source), free tier (Yes).

Which features does each one have?

They share no listed features; 9 appear only for Fluentd and 12 only for MQTT. 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 Fluentd

  • Log collection
  • Data parsing
  • Filtering and buffering
  • Event routing
  • API
  • Webhooks
  • REST
  • Web support

Only in MQTT

  • Publish-Subscribe
  • Lightweight
  • QoS Levels
  • Retained Messages
  • IoT platforms
  • Home automation
  • Cloud services
  • Edge devices

What is each one used for?

Fluentd is most often brought in for unified log collection and routing from many sources to many destinations; MQTT for IoT messaging. The jobs each tool is most often brought in to do.

Fluentd

  • Unified log collection and routing from many sources to many destinationsnot MQTT
  • Parsing and transforming log records before forwardingnot MQTT
  • Aggregating logs from containers into Elasticsearch, S3 or a SIEMnot MQTT

MQTT

  • IoT messagingnot Fluentd
  • Sensor datanot Fluentd
  • Real-time updatesnot Fluentd
  • Device telemetrynot Fluentd

Where do Fluentd and MQTT fall short?

Fluentd's most cited limit: Fluentd needs more than 60 MB of memory at runtime, against roughly 450 KB for Fluent Bit. MQTT's: MQTT is an open-source protocol standard with no commercial pricing; not a commercial product. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Fluentd

  • Fluentd needs more than 60 MB of memory at runtime, against roughly 450 KB for Fluent Bit
  • Fluentd is built as a Ruby gem and depends on other gems, so a Ruby runtime is required
  • Its capability comes from over 1,000 external plugins rather than built in functionality, so each added input or output is a separate dependency
  • The Fluent Bit documentation states that cloud providers have switched from Fluentd to Fluent Bit for performance and compatibility and calls Fluent Bit the next generation solution

MQTT

  • MQTT is an open-source protocol standard with no commercial pricing; not a commercial product
  • Security is not built into the protocol: encryption relies on TLS or application level encryption, and TLS adds network overhead
  • Clients cannot exchange messages directly: a broker server is required to route published messages to subscribers
  • Delivery has only three quality of service levels (at most once, at least once, exactly once), so richer routing needs broker features

How much do Fluentd and MQTT cost?

Fluentd is free to use; MQTT is free to use. Plan by plan below, from each vendor's own pricing page.

Fluentd

Free
  • FreeFree
    • Log collection
    • Data parsing
    • Filtering and buffering

MQTT

Free
  • Open ProtocolFree
    • Publish-subscribe
    • Lightweight
    • QoS levels

Which should you pick?

Choose Fluentd if

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

Choose MQTT if

  • You need publish-subscribe.
  • You want to start without paying.
  • You work on Any platform, Embedded devices, Web, Browser extension.
  • You also want lightweight.

Questions people ask

Is Fluentd or MQTT better?
It depends on the job. Fluentd fits unified log collection and routing from many sources to many destinations; MQTT fits ioT messaging. Fluentd starts at Free and MQTT at Free.
Which is cheaper, Fluentd or MQTT?
Fluentd starts at Free and MQTT at Free.
Does Fluentd or MQTT run on more platforms?
Fluentd runs on Web, API. MQTT runs on Any platform, Embedded devices, Web, Browser extension.
Can I use Fluentd for free?
Both have a free tier, so you can try either at no cost before committing.
What is Fluentd best used for?
Fluentd is most often used for unified log collection and routing from many sources to many destinations, parsing and transforming log records before forwarding, aggregating logs from containers into elasticsearch, s3 or a siem. Of those, unified log collection and routing from many sources to many destinations and parsing and transforming log records before forwarding are not what MQTT is typically brought in for.
What can Fluentd do that MQTT cannot?
Fluentd covers Log collection, Data parsing, Filtering and buffering, Event routing. MQTT covers Publish-Subscribe, Lightweight, QoS Levels, Retained Messages.

Answered from the vendors’ own pages

Fluentd: How much does Fluentd cost?

Fluentd is free and open-source under the Apache 2 License from the Cloud Native Computing Foundation (CNCF). There are no subscription fees, licensing costs, or commercial pricing tiers.

Source
MQTT: Does MQTT have a commercial license cost?

MQTT is an open-source communication protocol and standard. No pricing is published because MQTT itself is not a commercial product for sale.

Source
Share

Related pages

Other head to heads