Re: My experiences with Rust

From: Tomoaki AOKI <junchoon_at_dec.sakura.ne.jp>
Date: Sat, 23 Aug 2025 12:43:26 UTC
On Sat, 23 Aug 2025 14:13:11 +0300
Anthony Pankov <anthony.pankov@yahoo.com> wrote:

> 
> On 23 августа 2025 г., 1:32:25 you wrote:
> ..
> > For output-only data from kernel TO BE LOGGED, text-only format would be
> > strictly wanted to read/process using oldies-but-goodies tools like
> > less, grep, awk, sed and any other thing to handle texts.
> 
> I have a conceptual question. How to ensure reliability of recognizing
> events    coded    in    log    string?   There is no information of all
> mutations   which  log string can take. 'grep "\d+ dropped"' will
> do  the job well for "200 dropped" till log string has a form "dropped
> 100" or "150\s\sdropped". In latter cases event will be missed.
> 
> I  feel  that  there is, in principle, not enough information do solve
> the problem. But I don't think that structured data is the only cure.
> 
> 
> -- 
> Best regards,
>  Anthony Pankov                          mailto:anthony.pankov@yahoo.com

IMHO, standardizing would do.
Structured data can be a wide variety of formats.
From fixed-width-fielded texts, CSV to XML, JSON, nvlist and so on.
An example would be historical /var/log/messages (syslog).

Regards.

-- 
Tomoaki AOKI    <junchoon@dec.sakura.ne.jp>