Skip to content

Software

rcl_logging_syslog

From github.com/fujitatomoya/rcl_logging_syslog (opens in a new tab)

  • Middleware
  • Library
  • Apache-2.0

A ROS 2 logging backend that sends log messages through the system syslog interface to rsyslog, for file storage or forwarding to tools like Fluent Bit.

Facts

GitHub stars
114read on 28 Nov 2026
Last update
13 Sept 2026Newest commit on rolling
Maintenance
Activea commit in the last 90 days
Difficulty
Advanced
Hardware it needs, as the project states it
rsyslog must be installed; in containers rsyslogd must be started manually, and Fluent Bit is needed only for forwarding.

Checked on GitHub on 29 Nov 2026.

Licenses

Code
Apache-2.0 (opens in a new tab)

Read by Robotheca from LICENSE (opens in a new tab) (Apache-2.0) at commit 5ec0de1 (opens in a new tab), on 16 Oct 2026.

Commercial use
Yes

At a glance

What it is
  • Plugs into ROS 2 logging via rcl_logging_interface as an alternative backend to the default one.
  • Sends log data through SYSLOG(3) to rsyslog, which handles file sinks and remote forwarding.
  • Works with dynamic loading on Lyrical and later, selected at runtime with RCL_LOGGING_IMPLEMENTATION.
  • On Kilted, Jazzy, and Humble it must be statically linked by rebuilding rcl, since runtime switching is unavailable.
  • Log files are written under /var/log/ros, named by program, process ID, and date.
  • Includes configuration files for rsyslog and Fluent Bit, plus a test run with colcon test.

Robotheca's summary of the project's documents, not the creator's words.

Robots on Robotheca
No robot on Robotheca uses it yet.
Licence
Apache-2.0. Commercial use: Yes. Where it was read
Install
In the creator's words: The project's website (opens in a new tab)
Maintenance
Active, last commit on 13 Sept 2026.

Use it

How to install it, in the creator's words: The project's website (opens in a new tab)

Robotheca doesn't review code. Read it before running it.

Files and versions

Facts read at commit 5ec0de1

Robotheca never hosts the code: each link goes to the creator's own page.

The README

The creator's own README, copied as written: README.md by @fujitatomoya, at commit 5ec0de1, under Apache-2.0 (opens in a new tab). The original on GitHub (opens in a new tab).

Read the README here

(opens in a new tab) (opens in a new tab) (opens in a new tab) (opens in a new tab) (opens in a new tab) (opens in a new tab)

rcl_logging_syslog 🚢🚀🚂

rcl_logging_syslog (opens in a new tab) is alternative logging backend implementation that can be used for ROS 2 (opens in a new tab) application via rcl_logging_interface (opens in a new tab).

rcl_logging_syslog (opens in a new tab) uses SYSLOG(3) (opens in a new tab) to send the log data to rsyslog (opens in a new tab) a.k.a rocket-fast system for log processing 🚀.

The main objective is that Enabling ROS 2 logging system with Cloud-Native Log Management and Observability.

Picture: architecture_overview.png

see overview slide deck (opens in a new tab) for more information.

Motivation

The logging data is critical especially for entire system observability and status, so that application can alert the administrator or even give the feedback to the system with adjusting the parameter. This importance rises once it comes to robotics and robot application, especially distributed system such as ROS 2 (opens in a new tab) or edge computing because we must be able to specify what went wrong in the 1st place with these logging data.

rsyslog (opens in a new tab) is available in default Ubuntu distribution managed by system service, performative, and many configuration supported including log data pipeline. So that user can choose the logging configuration depending on the application requirement and use case, sometimes file system sink, sometimes forwarding to remote rsyslogd, or even FluentBit (opens in a new tab).

FluentBit (opens in a new tab) is a Fast Log Processor and Forwarder part of Graduated Fluentd (opens in a new tab) Ecosystem and a CNCF (opens in a new tab) sub-project.

Demonstration

See how it works 🔥

  • rsyslog / FluebtBit

Watch this video on GitHub (opens in a new tab)

  • rsyslog / Fluentd / Loki / Grafana

Watch this video on GitHub (opens in a new tab)

Tutorials
Supported ROS Distribution (opens in a new tab)
DistributionSupportedBranchDynamic Loading
Rolling Ridley✅rolling (Development)✅
Lyrical Luth✅lyrical✅
Kilted Kaiju✅kilted❌
Jazzy Jalisco✅jazzy❌
Humble Hawksbill✅humble❌
rcl_logging_implementation

Starting with Lyrical Luth (opens in a new tab), ROS 2 introduces rcl_logging_implementation (opens in a new tab), a package that enables runtime dynamic loading of logging backends, similar to how rmw_implementation (opens in a new tab) works for middleware selection. This abstraction layer allows users to switch between different logging implementations (such as rcl_logging_spdlog, rcl_logging_noop, or rcl_logging_syslog) without rebuilding RCL or application code.

See the ROS 2 Logging Documentation (opens in a new tab) for more details.

Runtime Dynamic Loading vs Static Linking

The logging system supports two build configurations:

Dynamic Loading (Default, Lyrical or later)

By default, rcl links against rcl_logging_implementation, which dynamically loads the logging backend at runtime. This approach provides maximum flexibility, allowing the logging implementation to be changed via the RCL_LOGGING_IMPLEMENTATION environment variable without recompilation.

  • The logging implementation is loaded as a shared library at runtime.
  • No rebuild of rcl is required to switch between logging implementations.
  • Simply build rcl_logging_syslog and set the environment variable to use it.

Static Linking (Kilted or older distributions)

For Kilted, Jazzy, and Humble distributions, the rcl_logging_implementation package is not available. Users must rebuild rcl with the RCL_LOGGING_IMPLEMENTATION CMake/environment variable set at build time to statically link rcl_logging_syslog.

  • The specified implementation is statically linked into rcl at build time.
  • Runtime switching is NOT available.
  • Requires rebuilding rcl whenever you want to change the logging backend.
Installation
Prerequisites

rcl_logging_syslog (opens in a new tab) requires rsyslog package, which Ubuntu should have already in default. But if you are using container, the situation is bit different from host system since there is no system services or rsyslogd is running by default. In the case of container, we need to install rsyslog packages in the container root file system.

[!NOTE] We can enable the container with host system privileges but that is NOT recommended, especially for security.

### Install rsyslog package
apt install rsyslog
  • create ros directory for rsyslog.

The following commands require root permission. /var/log/ros is the root directory for rcl_logging_syslog, all logs are expected to be stored under this root directory.

mkdir -p /var/log/ros
chown syslog:adm /var/log/ros

[!WARNING] For production, user needs to configure appropriate group if necessary but owner should be syslog. Otherwise rsyslogd may meet the permission problem for the file system.

If you are running the application on host system, check the rsyslog system service.

systemctl status rsyslog

If you are running the application on container environment, start the rsyslogd daemon process.

/usr/sbin/rsyslogd -n -iNONE

Or you prefer to use rsyslogd in the host system from the application in the container, you need to bind the /dev/log to the container via -v /dev/log:/dev/log, so that the application running in the container can open the Unix Domain Socket for rsyslogd running in the host system. In this setting, all rsyslogd configuration needs to be set in the host system.

if you want to use fluent-bit to forward the logging data from rsyslogd, please follow Fluent Bit Installation Manual (opens in a new tab) to install it.

### Check fluent-bit package is installed
dpkg -l fluent-bit
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
ii  fluent-bit     3.1.6        amd64        Fast data collector for Linux
Install Package

[!NOTE] Update how to install the package here once it is released.

Build Source

Please follow ROS 2 Official Development / Installation (opens in a new tab) to build the rcl_logging_syslog package below.

There are two ways to build and use rcl_logging_syslog: dynamic loading or static linking. See more details in the ROS 2 Logging Documentation (opens in a new tab) and the rcl_logging_implementation section above.

[!WARNING] Kilted or older distributions only support static linking and require rebuilding rcl. See more details for https://github.com/ros2/rcl/issues/1178 (opens in a new tab).

  • Dynamic Loading (Lyrical or later, Recommended)

    With rcl_logging_implementation available, you only need to build rcl_logging_syslog and set the RCL_LOGGING_IMPLEMENTATION environment variable at runtime. No rebuild of rcl is required.

    cd <YOUR_WORKSPACE>/src
    git clone https://github.com/fujitatomoya/rcl_logging_syslog.git
    cd <YOUR_WORKSPACE>
    colcon build --symlink-install --packages-select rcl_logging_syslog
    

    Then, set the environment variable before running your application:

    export RCL_LOGGING_IMPLEMENTATION=rcl_logging_syslog
    ros2 run <package> <executable>
    
  • Static Linking (Kilted or older)

    For distributions that do not have rcl_logging_implementation, you must rebuild rcl with the RCL_LOGGING_IMPLEMENTATION environment variable set at build time.

    cd <YOUR_WORKSPACE>/src
    git clone https://github.com/fujitatomoya/rcl_logging_syslog.git
    export RCL_LOGGING_IMPLEMENTATION=rcl_logging_syslog
    colcon build --symlink-install --cmake-clean-cache --packages-select rcl_logging_syslog rcl
    
Test

Following to the previous build procedure, we need to copy ros2-test.conf (opens in a new tab) to /etc/rsyslog.d/, and restart the rsyslog.

sudo cp ./config/ros2-test.conf /etc/rsyslog.d/

Then we can start the colcon test:

This test creates and uses /var/log/ros/rcl_logging_syslog directory in temporary for the test, and it checks the file existence and contents using rcl_logging_syslog.

colcon test --event-handlers console_direct+ --packages-select rcl_logging_syslog
Configuration

If you are using dynamic loading (Lyrical or later), set the logging implementation via the RCL_LOGGING_IMPLEMENTATION environment variable at runtime. If you are using static linking (Kilted or older), the logging implementation is already linked into rcl at build time and this environment variable has no effect.

export RCL_LOGGING_IMPLEMENTATION=rcl_logging_syslog
# then run our application. e.g. "ros2 run <package> <executable>"

See more details for rcl_logging_implementation and the ROS 2 Logging Documentation (opens in a new tab).

SYSLOG(3) (opens in a new tab) is really simple that does not have much interfaces to control on application side, it just writes the log data on rsyslog Unix Domain Socket. So we need to configure rsyslog how it manages the log message with /etc/rsyslog.conf, for example file system sink and forward the message to fluent-bit.

environmental variabledefaultNote
RCL_LOGGING_SYSLOG_FACILITYLOG_LOCAL1syslog facility (opens in a new tab): either of LOG_CRON, LOG_DAEMON, LOG_SYSLOG, LOG_USER, and LOG_LOCAL0-7. (/etc/rsyslog.conf must be configured accordingly.)

Examples:

export RCL_LOGGING_SYSLOG_FACILITY="LOG_LOCAL2"

See more details for https://www.rsyslog.com/doc/index.html (opens in a new tab).

rsyslog

Copy ros2-logging.conf (opens in a new tab) to /etc/rsyslog.d/, and replace <FLUENTBIT_IP> with your own IP address where fluent-bit listens on.

sudo cp ./config/ros2-logging.conf /etc/rsyslog.d/

Check the configuration file to see if there is no error,

rsyslogd -N1
rsyslogd: version 8.2312.0, config validation run (level 1), master config /etc/rsyslog.conf
rsyslogd: End of config validation run. Bye.

then, restart the rsyslog system service, or simply restart rsyslog daemon when using container.

### via systemd (not container environment)
sudo systemctl restart rsyslog
systemctl status rsyslog

### container environment
/usr/sbin/rsyslogd -n -iNONE
fluent-bit (opens in a new tab)

With above configuration, rsyslogd also sends log data to TCP port 5140 that fluent-bit listens with the following configuration. Replace <FLUENTBIT_IP> with your own IP address in fluent-bit.conf.

### Create working directory
mkdir fluentbit_ws; cd fluentbit_ws

### Copy the original files to the local directory
cp -rf /etc/fluent-bit/fluent-bit.conf fluent-bit.conf
cp -rf /etc/fluent-bit/parsers.conf parsers.conf

### Modify the configuration as below
cat fluent-bit.conf
[SERVICE]
    Flush        1
    Parsers_File parsers.conf

[INPUT]
    Name     syslog
    Parser   syslog-rfc3164
    Listen   <FLUENTBIT_IP>
    Port     5140
    Mode     tcp

[OUTPUT]
    Name     stdout
    Match    *

# Start fluent-bit
/opt/fluent-bit/bin/fluent-bit --config=./fluent-bit.conf
Usage

Logging messages from ROS 2 application will be sent to rsyslogd and forwarded to fluent-bit if that is configured.

Examples

The following is an example output for file system and fluent-bit (opens in a new tab).

Start ROS 2 demo application:

ros2 run demo_nodes_cpp talker
[INFO] [1724453270.445092186] [talker]: Publishing: 'Hello World: 1'
[INFO] [1724453271.444981999] [talker]: Publishing: 'Hello World: 2'
[INFO] [1724453272.445056310] [talker]: Publishing: 'Hello World: 3'
...

Logging files under file system:

With example configuration and template above, file name is <PROGRAMNAME>_<PID>_<YEAR>-<MONTH>-<DATE>.log. And log data is prefixed with hostname, facility name, log level and program name as well.

root@tomoyafujita:/var/log# find ros
ros
ros/tomoyafujita
ros/tomoyafujita/talker_31348_2024-08-28.log

root@tomoyafujita:/var/log# cat ros/tomoyafujita/talker_31348_2024-08-28.log
Aug 28 11:30:18 tomoyafujita local1.info: talker[31348]: [INFO] [1724869818.620827927] [talker]: Publishing: 'Hello World: 1'
Aug 28 11:30:19 tomoyafujita local1.info: talker[31348]: [INFO] [1724869819.620758249] [talker]: Publishing: 'Hello World: 2'
Aug 28 11:30:20 tomoyafujita local1.info: talker[31348]: [INFO] [1724869820.620777277] [talker]: Publishing: 'Hello World: 3'

FluentBit output:

/opt/fluent-bit/bin/fluent-bit --config=./fluent-bit.conf
Fluent Bit v3.1.6
* Copyright (C) 2015-2024 The Fluent Bit Authors
* Fluent Bit is a CNCF sub-project under the umbrella of Fluentd
* https://fluentbit.io

______ _                  _    ______ _ _           _____  __
|  ___| |                | |   | ___ (_) |         |____ |/  |
| |_  | |_   _  ___ _ __ | |_  | |_/ /_| |_  __   __   / /`| |
|  _| | | | | |/ _ \ '_ \| __| | ___ \ | __| \ \ / /   \ \ | |
| |   | | |_| |  __/ | | | |_  | |_/ / | |_   \ V /.___/ /_| |_
\_|   |_|\__,_|\___|_| |_|\__| \____/|_|\__|   \_/ \____(_)___/

[2024/08/23 16:02:00] [ info] [fluent bit] version=3.1.6, commit=, pid=1686882
[2024/08/23 16:02:00] [ info] [storage] ver=1.5.2, type=memory, sync=normal, checksum=off, max_chunks_up=128
[2024/08/23 16:02:00] [ info] [cmetrics] version=0.9.4
[2024/08/23 16:02:00] [ info] [ctraces ] version=0.5.5
[2024/08/23 16:02:00] [ info] [input:syslog:syslog.0] initializing
[2024/08/23 16:02:00] [ info] [input:syslog:syslog.0] storage_strategy='memory' (memory only)
[2024/08/23 16:02:00] [ info] [in_syslog] TCP server binding 43.135.146.89:5140
[2024/08/23 16:02:00] [ info] [sp] stream processor started
[2024/08/23 16:02:00] [ info] [output:stdout:stdout.0] worker #0 started
...
[0] syslog.0: [[1724844661.000000000, {}], {"pri"=>"142", "time"=>"Aug 28 11:31:01", "host"=>"tomoyafujita", "ident"=>"talker", "pid"=>"31348", "message"=>"[INFO] [1724869861.620769614] [talker]: Publishing: 'Hello World: 44'"}]
[0] syslog.0: [[1724844662.000000000, {}], {"pri"=>"142", "time"=>"Aug 28 11:31:02", "host"=>"tomoyafujita", "ident"=>"talker", "pid"=>"31348", "message"=>"[INFO] [1724869862.620773450] [talker]: Publishing: 'Hello World: 45'"}]
[0] syslog.0: [[1724844663.000000000, {}], {"pri"=>"142", "time"=>"Aug 28 11:31:03", "host"=>"tomoyafujita", "ident"=>"talker", "pid"=>"31348", "message"=>"[INFO] [1724869863.620773763] [talker]: Publishing: 'Hello World: 46'"}]
...
Reference

Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.