News for hackers. Stuff that matters.
Re:The Invisible JavaScript Backdoor by ryanianian on Wednesday November 10, 2021 @10:21AM (#29175538)
> what I need is for a terminal command that can recognize the meta fields from a log record and put them on a line separated from the main message

Isn't this the exact use-case of structured logging?

Log events have

    {timestamp, log level, log category, string message, ...arbitrary key/value pairs}
Usually serializing each message as a single json line in a file.

Since it's all on one line you can still use grep, but then since it's machine-readable you can pipe the grep to anything that can parse json. Vanilla python3 works and tends to be a part of most ops toolkits. Such tooling can split out the fields onto other lines etc or in a more reader-friendly format.

Re:The Invisible JavaScript Backdoor by gostsamo on Wednesday November 10, 2021 @11:34AM (#29176627)
Yes, this has been my idea in many cases, but it is not always that I have a say over the logging format.