Skip to content

Logs receiver for systemd / journald logs #2858

@jmacd

Description

@jmacd

Pre-filing checklist

  • I searched existing issues and didn't find a duplicate

Component(s)

Rust OTAP dataflow (rust/otap-dataflow/)

Is your feature request related to a problem?

On UNIX hosts, we are interested in a journald logs receiver for otap-dataflow.

Proposed Solution

A low-code way to do this would be to exec the "journald" command, which supports paging through the logs with a cursor, the --after-cursor flag and the __CURSOR attribute on each entry. These logs can be emitted as JSON. This would be inefficient for us.

https://systemd.io/ has the official documentation on this format, which can be accessed directly through existing C libraries with #include <systemd/sd-journal.h>.

Alternatives Considered

We should study how other logs collectors do this more specifically. We will likely encounter a desire to co-locate the receiver with the CPU and NUMA region where the journal disk is attached.

Additional Context

No response

Metadata

Metadata

Assignees

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions