Re: More systemdCrap

Liste des GroupesRevenir à col misc 
Sujet : Re: More systemdCrap
De : robin_listas (at) *nospam* es.invalid (Carlos E.R.)
Groupes : comp.os.linux.misc
Date : 13. Mar 2025, 09:37:10
Autres entêtes
Message-ID : <m2iaalx7l9.ln2@Telcontar.valinor>
References : 1 2
User-Agent : Mozilla Thunderbird
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.

Date Sujet#  Auteur
10 Mar 25 * More systemdCrap84The Natural Philosopher
10 Mar 25 +* Re: More systemdCrap69Dan Espen
10 Mar 25 i`* Re: More systemdCrap68The Natural Philosopher
10 Mar 25 i +* Re: More systemdCrap52Carlos E.R.
10 Mar 25 i i`* Re: More systemdCrap51The Natural Philosopher
10 Mar 25 i i `* Re: More systemdCrap50Carlos E.R.
10 Mar 25 i i  +* Re: More systemdCrap41John Ames
11 Mar 25 i i  i`* Re: More systemdCrap40The Natural Philosopher
11 Mar 25 i i  i +* Re: More systemdCrap20Carlos E.R.
11 Mar 25 i i  i i+* Re: More systemdCrap10The Natural Philosopher
11 Mar 25 i i  i ii+* Re: More systemdCrap6Carlos E.R.
11 Mar 25 i i  i iii`* Re: More systemdCrap5The Natural Philosopher
11 Mar 25 i i  i iii +* Re: More systemdCrap3John Ames
11 Mar 25 i i  i iii i+- Re: More systemdCrap1D
12 Mar 25 i i  i iii i`- Re: More systemdCrap1Lawrence D'Oliveiro
12 Mar 25 i i  i iii `- Re: More systemdCrap1Lawrence D'Oliveiro
12 Mar 25 i i  i ii`* Re: More systemdCrap3Lawrence D'Oliveiro
12 Mar 25 i i  i ii `* Re: More systemdCrap2John Ames
12 Mar 25 i i  i ii  `- Re: More systemdCrap1Lawrence D'Oliveiro
11 Mar 25 i i  i i+- Re: More systemdCrap1John Ames
11 Mar 25 i i  i i`* Re: More systemdCrap8John McCue
12 Mar 25 i i  i i `* Re: More systemdCrap7Lawrence D'Oliveiro
12 Mar 25 i i  i i  `* Re: More systemdCrap6Carlos E.R.
12 Mar 25 i i  i i   `* Re: More systemdCrap5Lawrence D'Oliveiro
12 Mar 25 i i  i i    `* Re: More systemdCrap4Carlos E.R.
13 Mar 25 i i  i i     `* Re: More systemdCrap3Lawrence D'Oliveiro
13 Mar 25 i i  i i      `* Re: More systemdCrap2Carlos E.R.
13 Mar 25 i i  i i       `- Re: More systemdCrap1Lawrence D'Oliveiro
11 Mar 25 i i  i +* Re: More systemdCrap16David W. Hodgins
11 Mar 25 i i  i i`* Re: More systemdCrap15The Natural Philosopher
11 Mar 25 i i  i i +* Re: More systemdCrap13Pancho
11 Mar 25 i i  i i i+* Re: More systemdCrap10John Ames
11 Mar 25 i i  i i ii+* Re: More systemdCrap4Pancho
11 Mar 25 i i  i i iii`* Re: More systemdCrap3John Ames
11 Mar 25 i i  i i iii +- Re: More systemdCrap1Pancho
11 Mar 25 i i  i i iii `- Re: More systemdCrap1The Natural Philosopher
11 Mar 25 i i  i i ii+* Re: More systemdCrap2D
12 Mar 25 i i  i i iii`- Re: More systemdCrap1Carlos E.R.
12 Mar 25 i i  i i ii`* Re: More systemdCrap3Carlos E.R.
12 Mar 25 i i  i i ii `* Re: More systemdCrap2John Ames
12 Mar 25 i i  i i ii  `- Re: More systemdCrap1Carlos E.R.
11 Mar 25 i i  i i i+- Re: More systemdCrap1The Natural Philosopher
11 Mar 25 i i  i i i`- Re: More systemdCrap1D
12 Mar 25 i i  i i `- Re: More systemdCrap1Lawrence D'Oliveiro
11 Mar 25 i i  i +- Re: More systemdCrap1TJ
12 Mar 25 i i  i `* Re: More systemdCrap2Lawrence D'Oliveiro
12 Mar 25 i i  i  `- Re: More systemdCrap1Carlos E.R.
11 Mar 25 i i  `* Re: More systemdCrap8The Natural Philosopher
11 Mar 25 i i   `* Re: More systemdCrap7John McCue
11 Mar 25 i i    `* Re: More systemdCrap6Pancho
11 Mar 25 i i     +* Re: More systemdCrap4Carlos E.R.
12 Mar 25 i i     i+- Re: More systemdCrap1Lawrence D'Oliveiro
14 Mar 25 i i     i`* Re: More systemdCrap2Stéphane CARPENTIER
16 Mar 25 i i     i `- Re: More systemdCrap1c186282
11 Mar 25 i i     `- Re: More systemdCrap1The Natural Philosopher
10 Mar 25 i +- Re: More systemdCrap1Dan Espen
10 Mar 25 i `* Re: More systemdCrap14Dan Espen
10 Mar 25 i  `* Re: More systemdCrap13The Natural Philosopher
10 Mar 25 i   +* Re: More systemdCrap10Carlos E.R.
11 Mar 25 i   i+* Re: More systemdCrap5Lawrence D'Oliveiro
11 Mar 25 i   ii`* Re: More systemdCrap4Carlos E.R.
11 Mar 25 i   ii +* Re: More systemdCrap2The Natural Philosopher
11 Mar 25 i   ii i`- Re: More systemdCrap1Lawrence D'Oliveiro
11 Mar 25 i   ii `- Re: More systemdCrap1Lawrence D'Oliveiro
11 Mar 25 i   i`* Re: More systemdCrap4The Natural Philosopher
11 Mar 25 i   i +* Re: More systemdCrap2Carlos E.R.
11 Mar 25 i   i i`- Re: More systemdCrap1The Natural Philosopher
11 Mar 25 i   i `- Re: More systemdCrap1Lawrence D'Oliveiro
11 Mar 25 i   `* Re: More systemdCrap2Dan Espen
11 Mar 25 i    `- Re: More systemdCrap1The Natural Philosopher
13 Mar 25 `* Re: More systemdCrap14Richard Kettlewell
13 Mar 25  `* Re: More systemdCrap13Carlos E.R.
13 Mar 25   `* Re: More systemdCrap12Lawrence D'Oliveiro
14 Mar 25    `* Re: More systemdCrap11Carlos E.R.
14 Mar 25     `* Re: More systemdCrap10Lawrence D'Oliveiro
15 Mar 25      +- Re: More systemdCrap1vallor
16 Mar 25      `* Re: More systemdCrap8Carlos E.R.
17 Mar 25       `* Re: More systemdCrap7Lawrence D'Oliveiro
18 Mar 25        `* Re: More systemdCrap6Carlos E.R.
18 Mar 25         `* Re: More systemdCrap5Lawrence D'Oliveiro
18 Mar 25          `* Re: More systemdCrap4Carlos E.R.
18 Mar 25           +* Re: More systemdCrap2Lawrence D'Oliveiro
19 Mar 25           i`- Re: More systemdCrap1Carlos E.R.
19 Mar 25           `- Re: More systemdCrap1The Natural Philosopher

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal