Article View: alt.privacy.anon-server
Article #302288Re: What are these journals in var/log
From: Bit Twister
Date: Tue, 05 Feb 2019 23:02
Date: Tue, 05 Feb 2019 23:02
72 lines
4076 bytes
4076 bytes
On Tue, 5 Feb 2019 23:23:14 +0100, Carlos E.R. wrote:
> On 05/02/2019 16.47, Bit Twister wrote:
>> 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
>
> Telcontar:~ # type journalctl
> journalctl is hashed (/usr/bin/journalctl)
> Telcontar:~ #
Well color me confused. Your plain "journalctl" command output
is nothing like mine and your processing time might be within
bounds if it is building a process tree for all your records.
I showed you that mine puts out just rows of text, and here is bottom of my log
Feb 05 16:44:01 wb.home.test crond[23818]: pam_unix(crond:session): session opened for user hotmail by (uid=0)
Feb 05 16:44:01 wb.home.test CROND[23823]: (hotmail) CMD (/bin/nice -n 19 /usr/bin/run-parts $_cron_loc/.cron/hourly)
Feb 05 16:44:01 wb.home.test CROND[23818]: pam_unix(crond:session): session closed for user hotmail
lines 7571-7625/7625 (END)
I find no command line switch tell journalctl to display output
in process tree format.
>
>>> 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
>
> No, that's not it. By far.
NO, it is. You say
"I simply rotate the news logs after a few days, but in the journal I can't."
snippet from my script
$ grep rotate new_journal
#* then delete rotated files and all user logs.
journalctl --rotate
shows the command I use, and in fact rotates the journal log.
> I refer to the ability of a good syslog implementation to, for instance,
> delete daily the nntp logs older than a week, while keep mail log for
> three years. For example.
That is a different conversation. I never said was good or bad.
All I was doing responding to your statements.
Technical Details
Message-ID:
<slrnq5k5gc.mv6.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> <slrnq5jbvo.veu.BitTwister@wb.home.test> <ivepif-ec8.ln1@Telcontar.valinor>Show Full Headers
Complete Article Headers
Message-ID: <slrnq5k5gc.mv6.BitTwister@wb.home.test> Subject: Re: What are these journals in var/log Date: Tue, 5 Feb 2019 17:02:34 -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> <slrnq5jbvo.veu.BitTwister@wb.home.test> <ivepif-ec8.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 X-Received: by 2002:a1c:28c4:: with SMTP id o187mr70124wmo.7.1549407759261; Tue, 05 Feb 2019 15:02:39 -0800 (PST) Mime-Version: 1.0 Newsgroups: alt.privacy.anon-server,alt.os.linux,comp.os.linux.misc Organization: A noiseless patient Spider Lines: 73 User-Agent: slrn/1.0.3 (Linux) Cancel-Lock: sha1:50TNQM0sEyPP/Mi4hqcJdW9IEIU=