go-systemd icon indicating copy to clipboard operation
go-systemd copied to clipboard

CGO free alternative to sdjournal ?

Open guettli opened this issue 9 months ago • 1 comments

I am looking for a CGO free alternative to sdjournal

This would solve two problems:

  • I can avoid the coreos/go-systemd package (unmaintained)
  • I can easily build for arm.

guettli avatar Mar 26 '25 07:03 guettli

I think it is best to use the journalctl binary. Like this PR which replaces the coreos/go-systemd package: https://github.com/elastic/beats/pull/40061/files

Alternative: https://github.com/Velocidex/go-journalctl (but seems very fresh, only three commits).

guettli avatar Mar 26 '25 07:03 guettli

Executing journalctl would likely be your best option then. I would say this is likely out of scope for this project though.

Luap99 avatar Jul 31 '25 17:07 Luap99

I guess we can close this now, as an alternative has been provided, and overall the issue of our of scope for this project.

kolyshkin avatar Sep 17 '25 21:09 kolyshkin