observability

practicalli-johnny 2021-07-23T19:10:53.014700Z

@bruno.bonacci is it possible to use mulog to capture the logs from an embedded jetty server that runs my web application (reitit, ring). Or would a more typical java logger to capture the jetty logs and push them to the same log service as mulog

practicalli-johnny 2021-07-23T19:15:53.015500Z

Ah, it seems I would just send both sources to something like elastic search and that would merge the two sources.

emccue 2021-07-23T19:43:58.017300Z

Yeah I too am curious what the ideal way is to manage structured logging in the face of existing less structured stuff

2021-07-23T19:48:51.019100Z

Hi @jr0cket, yes μ/log can do that. with a single well crafted ring wrapper you can callect enough information to perform a large number of queries (see [comment](https://github.com/BrunoBonacci/mulog/issues/25#issuecomment-656062331))

2021-07-23T19:49:58.020500Z

this was one of the main design goals of μ/log.

2021-07-23T19:52:52.023100Z

here there is a [simple wrapper example](https://github.com/BrunoBonacci/mulog/blob/master/examples/roads-disruptions/src/com/brunobonacci/disruptions/api.clj#L56-L69) This works, not only on a single application, but if you are in a microservice environment, and each system instruments with a fairly simple wrapper you can get tracing across all your application without the need of expensive tooling and you still get to keep the raw data.

2021-07-23T19:54:35.024100Z

μ/trace captures the relationship of internal calls to other μ/trace as well generating call traces like https://raw.githubusercontent.com/BrunoBonacci/mulog/master/examples/roads-disruptions/doc/images/disruption-trace.png

2021-07-23T19:57:05.026300Z

There are teams that use it to build complex pipelines to detect quite sophisticate issues in their systems μ/log -> kafka -> streaming-app -> kafka -> monitoring-dashboard and it is just the same data that they already use with Elasticsearch or Cloudwatch

2021-07-23T19:58:50.028200Z

(at some point) I hope to make a talk about how teams use μ/log for observability and operation (autoscaling, downscaling, warm-up, etc)

2021-07-23T19:59:15.028600Z

seeing all this in practice makes so much more sense.

practicalli-johnny 2021-07-23T20:54:26.031500Z

Excellent, thank you. I will start adopting mulog on all our new Clojure projects and look for opportunities to adopt on existing projects

❤️ 1