Fluentd
This page explains how to configure Fluentd to ship logs into Vector for Logwise, and what you need to change on the Vector side for:
- the Docker-based Logwise stack, and
- a manual/self-hosted Vector setup.
Unlike OTEL Collector or Fluent Bit (which use OTLP), Fluentd will send logs over TCP using its forward output plugin, and Vector will receive them using a socket source.
1. Fluentd configuration
Example Fluentd config that tails a log file and forwards records to Vector:
xml
<source>
@type tail
path /var/log/healthcheck/healthcheck.log
pos_file /var/log/fluentd-healthcheck.pos
tag healthcheck
<parse>
@type none
</parse>
</source>
<match healthcheck>
@type forward
<server>
host VECTOR_HOST
port 24224
</server>
</match>- Replace
VECTOR_HOSTwith the host where Vector is running. - Port
24224is an example; you can use any free port, as long as it matches the Vector configuration.
2. Vector configuration impact
To receive logs from Fluentd, Vector needs a TCP socket source:
yaml
fluentd_logs:
type: "socket"
address: "0.0.0.0:24224"
mode: "tcp"You can then:
- reference
fluentd_logsin existing transforms, or - create a dedicated transform that consumes
fluentd_logsand routes to the same sinks asotlp_logs.
2.1 Docker-based Logwise stack
For Docker:
- Edit
vector/vector.yamlin the repository and add thefluentd_logssource shown above. - Rebuild or restart the Vector container so it picks up the new configuration, for example:
docker compose restart vector(from thedeploydirectory), or- bring the stack down and up again (
make down && make up) if you’re using theMakefile.
- Ensure the container port mapped for Vector exposes
24224/tcpif Fluentd runs outside the Docker network.
2.2 Manual/self-hosted Vector
For a self-hosted Vector:
- Follow the Self-Host → Vector guide to install Vector and copy
vector.yamlto/etc/vector/vector.yaml. - Add the
fluentd_logssource block to/etc/vector/vector.yaml. - Open port 24224/tcp on your firewall (or whichever port you chose).
- Restart Vector (for example:
sudo systemctl restart vector).
3. Summary
- Use Fluentd when you already have it deployed or need its plugin ecosystem.
- Configure Fluentd with:
- a
tailinput for your log files, - a
forwardoutput pointing toVECTOR_HOST:24224.
- a
- Configure Vector with a
socketsource namedfluentd_logslistening on the same port, and wire that source into your existing transforms/sinks so Fluentd logs follow the same pipeline as OTEL-based logs.
