Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.misc > #66369
| From | "Carlos E.R." <robin_listas@es.invalid> |
|---|---|
| Newsgroups | comp.os.linux.misc |
| Subject | Re: More systemdCrap |
| Date | 2025-03-13 09:37 +0100 |
| Message-ID | <m2iaalx7l9.ln2@Telcontar.valinor> (permalink) |
| References | <vqn41l$1efis$1@dont-email.me> <wwvjz8tqsms.fsf@LkoBDZeT.terraraq.uk> |
On 2025-03-13 08:47, Richard Kettlewell wrote: > The Natural Philosopher <tnp@invalid.invalid> writes: >> I have an errant service spewing out pages of errors. >> >> It appears that journalctl is not able to clear a single service from >> its log files. >> Anyone know different? > > Pass. > > An approach that might suit you better: > * Send all the logs to syslog. > * Read/filter/delete the syslog files in the traditional way, instead of > using journalctl. > * Optionally, set the journal size to something small since you won’t be > using it much. > > This used to be a standard configuration in Debian but I think they’ve > changed the default now. > > There’s two ways to do it: > 1) Have journald forward to syslog. > 2) Have syslog read from the journal. > > The paragraph at the bottom of > https://www.freedesktop.org/software/systemd/man/latest/journald.conf.html > discusses the differences. I think option #2 would usually be the better > choice, since it reduces the chance of missed messages. > > https://www.loggly.com/ultimate-guide/centralizing-with-syslog/ > describes how to set up both approaches. “Using imjournal” corresponds > to option #2. I had both journal and rsyslog working, but I don't know exactly how I did it years ago. I have experimented with what those two links propose. I have, on /etc/systemd/journald.conf: #ForwardToSyslog=no #MaxLevelSyslog=debug On /etc/rsyslog.conf I had: # provides support for local system logging (e.g. via logger command) $ModLoad imuxsock.so I commented that line and added: $ModLoad imjournal When I restart the syslog daemon, I get a flush of new entries that it reads from the journal. This is not good. And, when I issue: logger -p local3.info hello The message gets to the journal but not to the syslog. So I change to $ModLoad imuxsock.so $ModLoad imjournal and now the messages go to both places, but the restart of the daemon adds the flurry of entries to the log files again. This is not clean; when I do changes to the syslog filtering, I have to restart the daemon and everything will be written again. The weird thing is that with the previous configuration I was getting the messages, except some boot messages. Oh, I forgot to add $ModLoad mmjsonparse No difference, though. So I'm going to try the socket method instead. /etc/systemd/journald.conf: ForwardToSyslog=yes MaxLevelSyslog=debug /etc/rsyslog.conf: $ModLoad imuxsock.so #$ModLoad imjournal #$ModLoad mmjsonparse I restart both services, I send a message with logger... everything seems correct. -- Cheers, Carlos.
Back to comp.os.linux.misc | Previous | Next — Previous in thread | Next in thread | Find similar
More systemdCrap The Natural Philosopher <tnp@invalid.invalid> - 2025-03-10 16:29 +0000
Re: More systemdCrap Dan Espen <dan1espen@gmail.com> - 2025-03-10 14:12 -0400
Re: More systemdCrap The Natural Philosopher <tnp@invalid.invalid> - 2025-03-10 18:40 +0000
Re: More systemdCrap "Carlos E.R." <robin_listas@es.invalid> - 2025-03-10 19:45 +0100
Re: More systemdCrap The Natural Philosopher <tnp@invalid.invalid> - 2025-03-10 20:50 +0000
Re: More systemdCrap "Carlos E.R." <robin_listas@es.invalid> - 2025-03-10 23:14 +0100
Re: More systemdCrap John Ames <commodorejohn@gmail.com> - 2025-03-10 15:28 -0700
Re: More systemdCrap The Natural Philosopher <tnp@invalid.invalid> - 2025-03-11 07:58 +0000
Re: More systemdCrap "Carlos E.R." <robin_listas@es.invalid> - 2025-03-11 13:17 +0100
Re: More systemdCrap The Natural Philosopher <tnp@invalid.invalid> - 2025-03-11 14:50 +0000
Re: More systemdCrap "Carlos E.R." <robin_listas@es.invalid> - 2025-03-11 15:59 +0100
Re: More systemdCrap The Natural Philosopher <tnp@invalid.invalid> - 2025-03-11 15:29 +0000
Re: More systemdCrap John Ames <commodorejohn@gmail.com> - 2025-03-11 08:41 -0700
Re: More systemdCrap D <nospam@example.net> - 2025-03-11 22:36 +0100
Re: More systemdCrap Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-03-11 23:47 +0000
Re: More systemdCrap Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-03-11 23:46 +0000
Re: More systemdCrap Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-03-11 23:44 +0000
Re: More systemdCrap John Ames <commodorejohn@gmail.com> - 2025-03-12 09:07 -0700
Re: More systemdCrap Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-03-12 21:38 +0000
Re: More systemdCrap John Ames <commodorejohn@gmail.com> - 2025-03-11 07:59 -0700
Re: More systemdCrap John McCue <jmccue@qball.jmcunx.com> - 2025-03-11 17:37 +0000
Re: More systemdCrap Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-03-11 23:42 +0000
Re: More systemdCrap "Carlos E.R." <robin_listas@es.invalid> - 2025-03-12 22:10 +0100
Re: More systemdCrap Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-03-12 21:38 +0000
Re: More systemdCrap "Carlos E.R." <robin_listas@es.invalid> - 2025-03-12 23:42 +0100
Re: More systemdCrap Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-03-13 00:12 +0000
Re: More systemdCrap "Carlos E.R." <robin_listas@es.invalid> - 2025-03-13 08:21 +0100
Re: More systemdCrap Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-03-13 08:06 +0000
Re: More systemdCrap "David W. Hodgins" <dwhodgins@nomail.afraid.org> - 2025-03-11 08:33 -0400
Re: More systemdCrap The Natural Philosopher <tnp@invalid.invalid> - 2025-03-11 14:52 +0000
Re: More systemdCrap Pancho <Pancho.Jones@protonmail.com> - 2025-03-11 15:50 +0000
Re: More systemdCrap John Ames <commodorejohn@gmail.com> - 2025-03-11 08:59 -0700
Re: More systemdCrap Pancho <Pancho.Jones@protonmail.com> - 2025-03-11 16:12 +0000
Re: More systemdCrap John Ames <commodorejohn@gmail.com> - 2025-03-11 09:19 -0700
Re: More systemdCrap Pancho <Pancho.Jones@protonmail.com> - 2025-03-11 16:25 +0000
Re: More systemdCrap The Natural Philosopher <tnp@invalid.invalid> - 2025-03-11 20:02 +0000
Re: More systemdCrap D <nospam@example.net> - 2025-03-11 22:38 +0100
Re: More systemdCrap "Carlos E.R." <robin_listas@es.invalid> - 2025-03-12 22:14 +0100
Re: More systemdCrap "Carlos E.R." <robin_listas@es.invalid> - 2025-03-12 22:12 +0100
Re: More systemdCrap John Ames <commodorejohn@gmail.com> - 2025-03-12 14:50 -0700
Re: More systemdCrap "Carlos E.R." <robin_listas@es.invalid> - 2025-03-12 23:44 +0100
Re: More systemdCrap The Natural Philosopher <tnp@invalid.invalid> - 2025-03-11 19:58 +0000
Re: More systemdCrap D <nospam@example.net> - 2025-03-11 22:37 +0100
Re: More systemdCrap Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-03-11 23:07 +0000
Re: More systemdCrap TJ <TJ@noneofyour.business> - 2025-03-11 11:32 -0400
Re: More systemdCrap Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-03-11 23:07 +0000
Re: More systemdCrap "Carlos E.R." <robin_listas@es.invalid> - 2025-03-12 22:26 +0100
Re: More systemdCrap The Natural Philosopher <tnp@invalid.invalid> - 2025-03-11 07:45 +0000
Re: More systemdCrap John McCue <jmccue@qball.jmcunx.com> - 2025-03-11 11:28 +0000
Re: More systemdCrap Pancho <Pancho.Jones@protonmail.com> - 2025-03-11 11:42 +0000
Re: More systemdCrap "Carlos E.R." <robin_listas@es.invalid> - 2025-03-11 13:21 +0100
Re: More systemdCrap Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-03-11 23:04 +0000
Re: More systemdCrap Stéphane CARPENTIER <sc@fiat-linux.fr> - 2025-03-14 20:22 +0000
Re: More systemdCrap c186282 <c186282@nnada.net> - 2025-03-15 22:39 -0400
Re: More systemdCrap The Natural Philosopher <tnp@invalid.invalid> - 2025-03-11 14:45 +0000
Re: More systemdCrap Dan Espen <dan1espen@gmail.com> - 2025-03-10 16:33 -0400
Re: More systemdCrap Dan Espen <dan1espen@gmail.com> - 2025-03-10 16:37 -0400
Re: More systemdCrap The Natural Philosopher <tnp@invalid.invalid> - 2025-03-10 20:53 +0000
Re: More systemdCrap "Carlos E.R." <robin_listas@es.invalid> - 2025-03-10 23:17 +0100
Re: More systemdCrap Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-03-10 23:33 +0000
Re: More systemdCrap "Carlos E.R." <robin_listas@es.invalid> - 2025-03-11 13:23 +0100
Re: More systemdCrap The Natural Philosopher <tnp@invalid.invalid> - 2025-03-11 14:51 +0000
Re: More systemdCrap Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-03-11 20:56 +0000
Re: More systemdCrap Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-03-11 21:05 +0000
Re: More systemdCrap The Natural Philosopher <tnp@invalid.invalid> - 2025-03-11 07:49 +0000
Re: More systemdCrap "Carlos E.R." <robin_listas@es.invalid> - 2025-03-11 13:27 +0100
Re: More systemdCrap The Natural Philosopher <tnp@invalid.invalid> - 2025-03-11 14:51 +0000
Re: More systemdCrap Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-03-11 20:56 +0000
Re: More systemdCrap Dan Espen <dan1espen@gmail.com> - 2025-03-11 10:21 -0400
Re: More systemdCrap Harold Stevens <wookie@aspen.localdomain> - 2025-03-11 09:47 -0500
Re: More systemdCrap The Natural Philosopher <tnp@invalid.invalid> - 2025-03-11 14:53 +0000
Re: More systemdCrap Richard Kettlewell <invalid@invalid.invalid> - 2025-03-13 07:47 +0000
Re: More systemdCrap "Carlos E.R." <robin_listas@es.invalid> - 2025-03-13 09:37 +0100
Re: More systemdCrap Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-03-13 22:07 +0000
Re: More systemdCrap "Carlos E.R." <robin_listas@es.invalid> - 2025-03-14 12:57 +0100
Re: More systemdCrap Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-03-14 21:30 +0000
Re: More systemdCrap vallor <vallor@cultnix.org> - 2025-03-15 03:19 +0000
Re: More systemdCrap "Carlos E.R." <robin_listas@es.invalid> - 2025-03-16 14:48 +0100
Re: More systemdCrap Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-03-17 00:40 +0000
Re: More systemdCrap "Carlos E.R." <robin_listas@es.invalid> - 2025-03-18 20:03 +0100
Re: More systemdCrap Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-03-18 21:20 +0000
Re: More systemdCrap "Carlos E.R." <robin_listas@es.invalid> - 2025-03-18 22:51 +0100
Re: More systemdCrap Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-03-18 22:06 +0000
Re: More systemdCrap "Carlos E.R." <robin_listas@es.invalid> - 2025-03-19 01:29 +0100
Re: More systemdCrap The Natural Philosopher <tnp@invalid.invalid> - 2025-03-19 06:31 +0000
csiph-web