▲ | swyx a day ago | |||||||||||||||||||||||||||||||||||||||||||||||||
i think GP's point is how would you even sanitize the string "OutOfMemoryException" which presumably comes from a trusted system i guess demanding "Structured logs for everything or bust" is the answer? (i'm not a big o11y guy so pardon me if this is obvious) | ||||||||||||||||||||||||||||||||||||||||||||||||||
▲ | noisem4ker a day ago | parent | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||
"o11y" stands for "observability". Numeronyms are evil and we should stop using them. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||
▲ | PhilipRoman a day ago | parent | prev [-] | |||||||||||||||||||||||||||||||||||||||||||||||||
Low tech example: escape all newlines in user supplied strings, then add a known prefix to all user supplied data (let's say a double hashtag ##, but anything else works too). When you want to search logs for strings coming from your system, remove/ignore everything after the marker. It all comes down to understanding whether the intersection of two grammars is empty. | ||||||||||||||||||||||||||||||||||||||||||||||||||
|