🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #302281

Re: What are these journals in var/log

#302281
From: William Unruh
Date: Tue, 05 Feb 2019 16:35
76 lines
4416 bytes
On 2019-02-05, Carlos E.R. <robin_listas@es.invalid> wrote:
> On 04/02/2019 18.20, William Unruh wrote:
>> On 2019-02-04, Carlos E.R. <robin_listas@es.invalid> wrote:
>
>
> What's the purpose of keeping alt.privacy.anon-server in the loop?
>
>
>>>> keeping a running track of everything you are doing on your system.  What else would need to keep such a large amount of data.
>>>
>>> They are just logs done inefficiently.
>> 
>> whether or not they are inefficient is debbatable. For some things they
>> definitely are. For others not. It basically replaces a text file
>> structure by and indexed database structure. I happen to like the text
>> file structure with grep better, but that is an inefficient way of
>> searching a database, if what you want is well defined. On the
>> otherhand, when I am trying to figure out what is going wrong with my
>> machine, I rarely know what I am looking for, and a database is very
>> inefficient when you do not know what you are looking for. 
>
> I say it is inefficient because on the machines where I keep both
> journal and syslog files, the later are much smaller, and keep a longer
> period of time.

Longer period is debateable. My journal files go back to Aug 22. My
syslog versions certainly do not. My syslog files go back about a month.
My journal is about 2.1G, my /var/log(other than journal) is about
1.1G.(mind you the largest is /var/log cups most of which is about .8GB
because of a lot of printer problems.) But then why do I need 8 months
of logs in journald?

Mind you that is not syslog since cups does its own error dumping which
does not go through syslog.

>
> I say it is inefficient because trying to dump the logs to text to
> search for something takes hours on rotating rust. It is fast on SSD.

You are of course supposed to "search for something" using journalctl. 
And hours is an exageration. Even on my system doing 
journalctl
which lists the full log takes about 3 min, not hours. Sounds like yours
is swapping as it tries to load the file into memory.

>
> It is also inefficient because you can not selectively keep out of the
> logs the portions that are not of interest. For example, if you use
> "leafnode" for news as I do, the amount of text spewed to the log is
> humongous. If you have to keep logs for some reason for two years the
> journal for that time become untractable, and worse, impossible to
> guarantee unbrokenness.
>
> One might, on the other hand, need two years of mail log, but not the rest.
>
> Finally, I don't know if it is possible to read journal stored on a
> different computer, and if it is, what is required to ensure readability
> of logs archived separately, say on DVD or tapes, over years.
>
> As for advantages of binary format, well, traditional syslog can also be
> stored on binary databases such as postgress or mysql.
>
>
> The advantage of journal is that, in theory, when a service stops
> working or has a problem, the status call should say what pertains to
> that service in the log. I say in theory, because I had a problem
> recently with a service and the cause was not in the journal re the
> service. It was easily visible in syslog or a full text dump.
>

Yes, I find it far easier to use rsyslog -- you can see context and
stuff that occured before and after. Sometimes like with the cups log,
it is so so so full of incomprehensible junk that it does not really
help much but that is a problem with both systems. It is a cups problem. 

>
Technical Details
Message-ID: <q3ce11$j8a$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <q38sor$vac$1@news.neodome.i2p> <q39det$qlk$1@news.mixmin.net> <33slif-n5n.ln1@Telcontar.valinor> <q39s84$uf9$4@dont-email.me> <0p9oif-8mj.ln1@Telcontar.valinor>

Show Full Headers
Complete Article Headers
Message-ID: <q3ce11$j8a$1@dont-email.me>
Subject: Re: What are these journals in var/log
Date: Tue, 05 Feb 2019 16:35:45 +0000
From: William Unruh <unruh@invalid.ca>
References: <q38sor$vac$1@news.neodome.i2p> <q39det$qlk$1@news.mixmin.net> <33slif-n5n.ln1@Telcontar.valinor> <q39s84$uf9$4@dont-email.me> <0p9oif-8mj.ln1@Telcontar.valinor>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: alt.privacy.anon-server,alt.os.linux,comp.os.linux.misc
Organization: A noiseless patient Spider
Lines: 76
Injection-Date: Tue, 5 Feb 2019 16:35:45 -0000 (UTC)
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:GwEaHGrhSzGMGTSZ9bxAZt5ySsU=