Re:The Art of Logging
by ludovicianul on Thursday October 06, 2022 @11:09AM
(#33109199)
To be honest these feel like excuses to avoid structure. Keeping things consistent is something that require dedication and explicit effort. Just saying "everyone just do logging in their preferred format" seems the easiest way.
Structured logging gives you lots of benefits. You monitoring will just work out of the box if you keep to the standard. Additional logs won't arbitrarily come up within your system with no anticipation. I'm not saying it will never happen, but you have control over it.
[ Parent
| on HN ]
Re:The Art of Logging
by 0xbadcafebee on Thursday October 06, 2022 @12:12PM
(#33110112)
Do you have control over the format that a router uses to send you logs? Or a cloud vendor's services? Probably not. Inconsistency is therefore a certainty. The time you spend on consistency for a small subset of your logs can instead be spent working on a telemetry management system which decomposes and analyses all your logs regardless of format.
Re:The Art of Logging
by ludovicianul on Friday October 07, 2022 @05:10AM
(#33119001)
The fact that you will have inconsistencies doesn't mean you don't need to thrive for a standard where you have control. It will still significantly simplify things.