You are not logged in.

#1 2018-04-16 19:47:14

buntolo
Member
Registered: 2011-10-11
Posts: 202

How to obtain plain text logs

Which is the best way to obtain plain text logs like back in the syslog era?
I haven't find a lot of info searching around (both forum and Google), just that for arch these 2 seem to be the available choices:
https://wiki.archlinux.org/index.php/rsyslog
https://wiki.archlinux.org/index.php/Syslog-ng

But I don't understand:
1) What makes rsyslog better than syslog-ng.
2) If I can use rsyslog to read other stuff than only kernel messages.*

* As reported from the wiki: "Note: rsyslog reads from /proc/kmsg. This means that subsequent reads from that file (either the user or a syslog daemon) will not read "old" logs from that file anymore. journald is not affected as it reads from /dev/kmsg which allows multiple readers."
Instead journalctl read various level https://wiki.archlinux.org/index.php/Systemd#Journal

Offline

#2 2018-04-17 11:26:19

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,557

Re: How to obtain plain text logs

I know nothing about rsyslog, but have used syslog-ng for years.

syslog-ng can connect sources, filters and destinations in many ways.
My main system rarely boots into systemd, so (even if i wanted to) i can't use journald.
Setting up syslog-ng to maintain logs for multiple init system for all inits was not hard, can rsyslog do the same ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2018-04-17 17:43:23

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: How to obtain plain text logs

buntolo wrote:

Which is the best way to obtain plain text logs like back in the syslog era?

Why do you want plain text logs?

The systemd journal files can be read directly with strings(1), if that helps.


Jin, Jîyan, Azadî

Offline

Board footer

Powered by FluxBB