Re: Selective rotation of journald logs

2024-02-26 Thread Nicolas George
Max Nikulin (12024-02-23): > I am realizing that the following is not an answer to the asked question. > The thread is no more than useless arguing anyway. > > Some ideas that might be useful in close cases: > - a bunch of filtering options and --output=export as a part of log rotation > to have s

Re: Selective rotation of journald logs

2024-02-24 Thread Byunghee HWANG
Max Nikulin writes: > On 24/02/2024 21:09, Byunghee HWANG wrote: >>> When I read the question I decided that syslog for auth facility is a >>> kind of solution. >> Really i would like to learn more. Can you show a more specific >> example? >> Also i'm using Debian (sid). > > Install rsyslog and l

Re: Selective rotation of journald logs

2024-02-24 Thread Max Nikulin
On 24/02/2024 21:09, Byunghee HWANG wrote: When I read the question I decided that syslog for auth facility is a kind of solution. Really i would like to learn more. Can you show a more specific example? Also i'm using Debian (sid). Install rsyslog and logrotate and read their configuration f

Re: Selective rotation of journald logs

2024-02-24 Thread Byunghee HWANG
Hellow Max! Max Nikulin writes: > On 23/02/2024 17:15, Nicolas George wrote: >> How do I tell systemd's logging system to keep authentication logs >> for >> one year and mail logs for one month? > > (...) > > P.S. > When I read the question I decided that syslog for auth facility is a > kind of

Re: Journald's qualities (was: Selective rotation of journald logs)

2024-02-24 Thread Mariusz Gronczewski
Dnia 2024-02-23, o godz. 15:05:52 Nicholas Geovanis napisał(a): > On Fri, Feb 23, 2024, 2:57 PM Dan Ritter wrote: > > > Stefan Monnier wrote: > > > Makes one wonder why they don't use naive append-only "plain > > > text" logs (tho with appropriate delimiters (maybe some kind of > > > CSV) to

Re: Journald's qualities (was: Selective rotation of journald logs)

2024-02-24 Thread Mariusz Gronczewski
Dnia 2024-02-23, o godz. 12:34:34 Dan Ritter napisał(a): > Stefan Monnier wrote: > > Makes one wonder why they don't use naive append-only "plain text" > > logs (tho with appropriate delimiters (maybe some kind of CSV) to > > make searches more reliable than with old-style plain text logs)? > >

Re: Journald's qualities (was: Selective rotation of journald logs)

2024-02-23 Thread Nicholas Geovanis
On Fri, Feb 23, 2024, 2:57 PM Dan Ritter wrote: > Stefan Monnier wrote: > > Makes one wonder why they don't use naive append-only "plain text" logs > > (tho with appropriate delimiters (maybe some kind of CSV) to make > > searches more reliable than with old-style plain text logs)? > > > > What a

Re: Journald's qualities (was: Selective rotation of journald logs)

2024-02-23 Thread Dan Ritter
Stefan Monnier wrote: > Makes one wonder why they don't use naive append-only "plain text" logs > (tho with appropriate delimiters (maybe some kind of CSV) to make > searches more reliable than with old-style plain text logs)? > > What are the advantages of journald's representation? > I mean, to

Re: Journald's qualities (was: Selective rotation of journald logs)

2024-02-23 Thread Mariusz Gronczewski
Dnia 2024-02-23, o godz. 10:26:49 Stefan Monnier napisał(a): > > [13:37:48]cthulhu:/var/log/journal☠ journalctl |dd of=/dev/zero > > bs=1M 0+15442 records in > > 0+15442 records out > > 63643115 bytes (64 MB, 61 MiB) copied, 5,47791 s, 11,6 MB/s > > du -h /var/log/journal/ > > 337M/var/lo

Re: Selective rotation of journald logs

2024-02-23 Thread Max Nikulin
On 23/02/2024 17:15, Nicolas George wrote: How do I tell systemd's logging system to keep authentication logs for one year and mail logs for one month? I am realizing that the following is not an answer to the asked question. The thread is no more than useless arguing anyway. Some ideas tha

Journald's qualities (was: Selective rotation of journald logs)

2024-02-23 Thread Stefan Monnier
> [13:37:48]cthulhu:/var/log/journal☠ journalctl |dd of=/dev/zero bs=1M > 0+15442 records in > 0+15442 records out > 63643115 bytes (64 MB, 61 MiB) copied, 5,47791 s, 11,6 MB/s > du -h /var/log/journal/ > 337M /var/log/journal/44cf6f547971fc33309d1e9e02e7 > 337M /var/log/journal/ > > (I've ra

Re: Selective rotation of journald logs

2024-02-23 Thread Mariusz Gronczewski
Dnia 2024-02-23, o godz. 14:23:07 Nicolas George napisał(a): > Mariusz Gronczewski (12024-02-23): > > Like, really what kind of person gets angry when they get too much > > details in instruction? > > What kind of person writes pages of angry mail when the details are > not liked? > That wou

Re: Selective rotation of journald logs

2024-02-23 Thread Nicolas George
Mariusz Gronczewski (12024-02-23): > Like, really what kind of person gets angry when they get too much > details in instruction? What kind of person writes pages of angry mail when the details are not liked? -- Nicolas George

Re: Selective rotation of journald logs

2024-02-23 Thread Mariusz Gronczewski
Dnia 2024-02-23, o godz. 14:09:45 Nicolas George napisał(a): > Greg Wooledge (12024-02-23): > > Have you even *read* this mailing list? Most of the people who ask > > for help here lack experience that you might consider "baby > > sysadmin" level, and would greatly appreciate the explanations.

Re: Selective rotation of journald logs

2024-02-23 Thread Mariusz Gronczewski
Dnia 2024-02-23, o godz. 14:03:50 Nicolas George napisał(a): > Greg Wooledge (12024-02-23): > > What was "blind" about his anaylsis? It looked pretty well thought > > out to me. He showed actual examples of how space-inefficient it > > is, and provided a theoretical example of how one misbehave

Re: Selective rotation of journald logs

2024-02-23 Thread Nicolas George
Greg Wooledge (12024-02-23): > Have you even *read* this mailing list? Most of the people who ask > for help here lack experience that you might consider "baby sysadmin" > level, and would greatly appreciate the explanations. It is usually quite easy to tell the difference by the phrasing and acc

Re: Selective rotation of journald logs

2024-02-23 Thread Mariusz Gronczewski
Dnia 2024-02-23, o godz. 13:48:35 Nicolas George napisał(a): > Mariusz Gronczewski (12024-02-23): > > So to say it short: It is horrid. > > Generic bashing of systemd in favor of a blind cult of the good old > ways are not what I am looking for either, and the unbalanced tone of > your reply m

Re: Selective rotation of journald logs

2024-02-23 Thread Greg Wooledge
On Fri, Feb 23, 2024 at 02:03:50PM +0100, Nicolas George wrote: > When somebody spends one line answering the question and then pages > “offering an alternative” by explaining things a baby sysadmin would > already know, I deduce they are not much above the level of baby > sysadmin themselves, and

Re: Selective rotation of journald logs

2024-02-23 Thread Nicolas George
Greg Wooledge (12024-02-23): > What was "blind" about his anaylsis? It looked pretty well thought out > to me. He showed actual examples of how space-inefficient it is, and > provided a theoretical example of how one misbehaved service could > flush out the important logs of well-behaved services

Re: Selective rotation of journald logs

2024-02-23 Thread Greg Wooledge
On Fri, Feb 23, 2024 at 01:48:35PM +0100, Nicolas George wrote: > Mariusz Gronczewski (12024-02-23): > > So to say it short: It is horrid. > > Generic bashing of systemd in favor of a blind cult of the good old ways > are not what I am looking for either, and the unbalanced tone of your > reply ma

Re: Selective rotation of journald logs

2024-02-23 Thread Nicolas George
Mariusz Gronczewski (12024-02-23): > So to say it short: It is horrid. Generic bashing of systemd in favor of a blind cult of the good old ways are not what I am looking for either, and the unbalanced tone of your reply makes it look like precisely that. -- Nicolas George

Re: Selective rotation of journald logs

2024-02-23 Thread Mariusz Gronczewski
Dnia 2024-02-23, o godz. 13:02:00 Nicolas George napisał(a): > Mariusz Gronczewski (12024-02-23): > > That is not a feature systemd's logging have. > > That is what it seems, but I would like second opinions. > > > You'd have to make a > > rsyslogd

Re: Selective rotation of journald logs

2024-02-23 Thread Nicolas George
Mariusz Gronczewski (12024-02-23): > That is not a feature systemd's logging have. That is what it seems, but I would like second opinions. > You'd have to make a > rsyslogd rule to put it in one directory Thanks, but my question was about systemd's

Re: Selective rotation of journald logs

2024-02-23 Thread Mariusz Gronczewski
Dnia 2024-02-23, o godz. 11:15:29 Nicolas George napisał(a): > Hi. > > It might be an obvious question, but I do not manage to find the > obvious answer: > > How do I tell systemd's logging system to keep authentication logs for > one year and mail logs for one month? > > Regards, > That is

Selective rotation of journald logs

2024-02-23 Thread Nicolas George
Hi. It might be an obvious question, but I do not manage to find the obvious answer: How do I tell systemd's logging system to keep authentication logs for one year and mail logs for one month? Regards, -- Nicolas George