Re:Ask HN: Best practices for log format?
by justanotherbody on Thursday April 27, 2017 @10:38AM
(#14211782)
Exactly this. Configure two log handlers - one sending data to ES and another to disk.
Alternatively, give the ops team what they want (more information) and then generate log files that please the devs from ES query output
It would be nice if there was a standard format you could just ship to a logging service, but the closest seems to be syslog, which is somewhat janky.
Re-parsing logs after they have been formatted for human consumption feels like an anti-pattern motivated by anemic logging libraries.