Fork me on GitHub
#observability
<
2021-07-23
>
practicalli-johnny19:07:53

@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-johnny19:07:53

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

emccue19:07:58

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

bruno.bonacci19:07:51

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))

bruno.bonacci19:07:58

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

bruno.bonacci19:07:52

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.

bruno.bonacci19:07:35

μ/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

bruno.bonacci19:07:05

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

bruno.bonacci19:07:50

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

bruno.bonacci19:07:15

seeing all this in practice makes so much more sense.

practicalli-johnny20:07:26

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

❤️ 2