|
| ▲ | PhilipRoman a day ago | parent | next [-] |
| If structured logging is too much, unique prefixes solve this issue. Basically you need some token that user provided data is unable to output to the log. If you rigorously escape all newlines, you can then use start-of-line and end-of-line as unforgeable tokens. The possibilities are endless and it all comes down to understanding whether the intersection of two grammars is empty. |
|
| ▲ | happysadpanda2 8 hours ago | parent | prev [-] |
| I read the gp to mean that error.log (being parsed to look for OOM) would have no associations with userSearches.log, in which an end-user searched for OOM |