Article View: alt.privacy.anon-server
Article #302278Re: What are these journals in var/log
From: Carlos E.R.
Date: Tue, 05 Feb 2019 14:43
Date: Tue, 05 Feb 2019 14:43
117 lines
5680 bytes
5680 bytes
On 05/02/2019 14.06, Bit Twister wrote: > On Tue, 5 Feb 2019 12:48:16 +0100, Carlos E.R. wrote: > >> 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. >> >> 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. > > Well size of journal has an impact on your process. > Personally I have never dumped the log to text for searching. > > I just hit up arrow and add to previous grep of journalctl. A plain "journalctl" command dumps the journal to text. Look: cer 4553 0.0 0.1 21524 10736 pts/19 Ss 13:55 0:00 | \_ bash cer 9062 0.0 0.0 74500 5828 pts/19 S+ 15:02 0:00 | | \_ journalctl cer 9063 0.0 0.0 7092 2212 pts/19 S+ 15:02 0:00 | | \_ less Only that it is partial. I do "journalctl" and I get the start of the log: -- Logs begin at Fri 2018-07-20 01:42:31 CEST, end at Tue 2019-02-05 15:04:24 CET. -- I hit "end" to see the current entries, and it takes over two minutes. I'm typing as I wait. And that computer is on SSD, it is longer on rust - people have told me of hours waiting, meaning that the log is fragmented. >> 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. > > I have very little experience with leafnode but hopefully there is > a configuration option to reduce the logging level. Sure, but I want that verbosity. In syslog, I simply rotate the news logs after a few days, but in the journal I can't. This means that in the journal I either keep huge logs to keep sufficient data of the other interesting entries, or have to reduce its size in which case it keeps less than a week of logs, thus the boot part goes out soon. > I do plan to look in how I can reduce the noise from sensord. > I want to tell it to quit logging INFO messages. Impossible in journal. It is all or nothing. No filtering whatsoever. We looked. >> 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. > > That sounds a bit bogus to me. To meet your assertion the log file > would have to be corrupted. But I have seen cases of corruption in the journal. >> Finally, I don't know if it is possible to read journal stored on a >> different computer, > > If you are not going to read the man page, go ahead and get a summary > of what options are available. Click up a terminal and run > journalctl --help Ok, so it can be done with "--directory". Will that work with different releases of the operating system? >> and if it is, what is required to ensure readability >> of logs archived separately, say on DVD or tapes, over years. > > Yep, just another case of ignorance. Yes you can use journalctl to > read any journalctl database file. I'll take your word for it. Why do you accuse me of ignorance? Is this not a forum for asking questions? I have asked this question several times (not here) and none has answered. >> As for advantages of binary format, well, traditional syslog can also be >> stored on binary databases such as postgress or mysql. > > Yes, but you would just be reinventing what journalctl provides > or have to create a tremendous amount of scripting to be able to > parse the data into columns and whatnot to get the same features. No trouble at all, it is part of rsyslog since before systemd existed. No scripting needed. Ignorance! Did you not read its man? :-P :-D >> 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 have no idea where you got that information/theory. From personal experience. And please, stop assuming that I'm a systemd hater. Far from it. But if anytime somebody simply says the problem he finds you are going to react as if I'm attacking you... well :-( -- Cheers, Carlos.
Technical Details
Message-ID:
<d1koif-9cb.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-mailReferences:
<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> <slrnq5j2hr.hcg.BitTwister@wb.home.test>Show Full Headers
Complete Article Headers
Message-ID: <d1koif-9cb.ln1@Telcontar.valinor> Subject: Re: What are these journals in var/log Date: Tue, 5 Feb 2019 15:43:25 +0100 From: "Carlos E.R." <robin_listas@es.invalid> 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> <slrnq5j2hr.hcg.BitTwister@wb.home.test> 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 X-Received: by 2002:a1c:7dc7:: with SMTP id y190mr416174wmc.2.1549377846613; Tue, 05 Feb 2019 06:44:06 -0800 (PST) Newsgroups: alt.privacy.anon-server,alt.os.linux,comp.os.linux.misc Lines: 117 Mime-Version: 1.0 X-Trace: individual.net O6KELC1UPeYr/W5/b8cRXwfAyKhDD6+EgPyWCaRK9i5WgJ5HQc X-Orig-Path: Telcontar.valinor!not-for-mail Cancel-Lock: sha1:V+pjEZ2Uafq1/VTSpkmSKwuKY98= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 In-Reply-To: <slrnq5j2hr.hcg.BitTwister@wb.home.test> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-CA