🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: What are these journals in var/log

#302307
From: Carlos E.R.
Date: Wed, 06 Feb 2019 11:22
93 lines
4961 bytes
On 06/02/2019 00.02, Bit Twister wrote:
> 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)

Yes, same thing, but it does so by calling "less". Just open
"journalctl" on a terminal, and run "ps afx" on another to find out the
process tree as I did.

> 
> 
> I find no command line switch tell journalctl to display output
> in process tree format.

Of course not. See above.



>>>> 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.

That's not it by far. You apparently refuse to understand.

journalctl --rotate deletes everything, based on log size or date. Not
selectively based on application or string.

> 
> 
>> 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.
> 

And wrongly. I'm stating that selective log rotation is not implemented
on journal, while it is on syslog. It is simply a known fact.

-- 
Cheers, Carlos.
Technical Details
Message-ID: <6ksqif-8dd.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
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> <slrnq5k5gc.mv6.BitTwister@wb.home.test>

Show Full Headers
Complete Article Headers
Message-ID: <6ksqif-8dd.ln1@Telcontar.valinor>
Subject: Re: What are these journals in var/log
Date: Wed, 6 Feb 2019 12:22:14 +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> <d1koif-9cb.ln1@Telcontar.valinor> <slrnq5jbvo.veu.BitTwister@wb.home.test> <ivepif-ec8.ln1@Telcontar.valinor> <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-mail
Newsgroups: alt.privacy.anon-server,alt.os.linux,comp.os.linux.misc
Lines: 93
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Trace: individual.net qzRN26JyF2bV/qUUoYJPagX8E5hoDthasdziz/Le/4A5+KsA/8
X-Orig-Path: Telcontar.valinor!not-for-mail
Cancel-Lock: sha1:tGezjcsdFHQS9NZpylA9+vL02a0=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0
In-Reply-To: <slrnq5k5gc.mv6.BitTwister@wb.home.test>
Content-Language: en-CA