News for hackers. Stuff that matters.
Re:Ask HN: Best practices for log format? by tveita on Thursday April 27, 2017 @09:27AM (#14211275)
If you're using a configurable logging library like logback for Java, it is fairly easy to have your application support both structured logging directly to Elasticsearch, and logging a more human readable format to disk or stderr for development.

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.

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