News for hackers. Stuff that matters.
Re:The Art of Logging by jasonpeacock on Wednesday October 05, 2022 @04:03PM (#33100612)
Logs should be the input to generate metrics (in addition to any metrics published directly).

Otherwise, it's hard to convert a stack trace into a metric ;) But you can process the logs to generate a metric about the frequency of stack traces.

Ditto for logs telling you "user Foo doesn't have permissions for that operation". Again, you can make a metric about "user permissions failure" but you still need the log to know that it was user Foo.

Re:The Art of Logging by rroot on Wednesday October 05, 2022 @06:12PM (#33101872)
If you need a metric on the frequency of stack traces, you have a way more serious problem than structuring your logs.
Re:The Art of Logging by lanstin on Thursday October 06, 2022 @11:35AM (#33109599)
Or you are working for people with such a problem.