Article View: alt.privacy.anon-server
Article #302279Re: What are these journals in var/log
From: Bit Twister
Date: Tue, 05 Feb 2019 15:47
Date: Tue, 05 Feb 2019 15:47
104 lines
4729 bytes
4729 bytes
On Tue, 5 Feb 2019 15:43:25 +0100, Carlos E.R. wrote: > 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 > I would like to see results from the following command: type journalctl > > I hit "end" to see the current entries, and it takes over two minutes. Well that plain sucks. Running on spinning rust. Currently running beta2 Mageia Release 7 and after numerous updates this morning I deleted all logs. rotated journal and rebooted. Let's see stats on dumping about 4 hours of logging. $ time journalctl > a real 0m0.028s user 0m0.025s sys 0m0.003s $ wc -l < a 2498 $ head -8 a -- Logs begin at Tue 2019-02-05 04:35:56 CST, end at Tue 2019-02-05 08:54:02 CST. -- Feb 05 04:35:56 wb.home.test systemd-journald[533]: System journal (/var/log/journal/a72968d3095244338d5e1e649034847a) is 48.0M, max 3.9G, 3.9G free. Feb 05 04:35:59 wb.home.test systemd[1]: Started Dovecot IMAP/POP3 email server. Feb 05 04:36:00 wb.home.test systemd[1]: Stopping Disk Manager... Feb 05 04:36:00 wb.home.test systemd[1]: Stopped File System Check on /dev/disk/by-label/video. Feb 05 04:36:00 wb.home.test systemd[1]: Stopping Authorization Manager... Feb 05 04:36:00 wb.home.test systemd[1]: Stopped target Graphical Interface. Feb 05 04:36:00 wb.home.test systemd[1]: Stopped target Multi-User System. > > In syslog, I simply rotate the news logs after a few days, but in the journal I can't. I do it every time I reboot the system and want new logs. Suggestion: journalctl --help | grep -i rotate >> 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. Yep, I spent a few minutes looking in the past. What I decided at the time was to look into /etc/syslog.conf to see how/if I can manager it at the application level. > Ok, so it can be done with "--directory". Will that work with different releases of the operating system? Operating system release should not matter. As for journalctl release if it has the switch/argument then I would expect it would. > Why do you accuse me of ignorance? The observation was based on a few of your comments of things found in the journalctl man page. > And please, stop assuming that I'm a systemd hater. Far from it. The assumption there is in your head not mine. :) Systemd haters need toL 1. use a distribution that does not have it 2. learn to use it 3. just STFU because bitching about make them the idiot. > But if anytime somebody simply says the problem he finds > you are going to react as if I'm attacking you... well :-( Anyone wanting to attack me is not going to get far. I run slrn as my Usenet client with damn fine kill file ability and I am not afraid to use it. :D
Technical Details
Message-ID:
<slrnq5jbvo.veu.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-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> <d1koif-9cb.ln1@Telcontar.valinor>Show Full Headers
Complete Article Headers
Message-ID: <slrnq5jbvo.veu.BitTwister@wb.home.test> Subject: Re: What are these journals in var/log Date: Tue, 5 Feb 2019 09:47:02 -0600 From: Bit Twister <BitTwister@mouse-potato.com> 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> <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-mail Newsgroups: alt.privacy.anon-server,alt.os.linux,comp.os.linux.misc Organization: A noiseless patient Spider Lines: 105 User-Agent: slrn/1.0.3 (Linux) Cancel-Lock: sha1:0WH89P1Dbu222I44CKM+9OYIl2c=