Logging and monitoring guidelines
Microservices of the Helping Hands application must generate both application and audit logs that can be captured by the ELK Stack. Application logs can be generated by the services using the tools.logging library of Clojure (https://github.com/clojure/tools.logging) that logs a message in a standard log4j (https://logging.apache.org/log4j/2.x/) style syntax. Logstash works well with most of the common logging formats (https://www.elastic.co/guide/en/logstash/6.1/plugins-inputs-log4j.html), but it is recommended to use structured logging instead.
Structured logs are easier to parse and load within a centralized repository using tools such as Logstash. Libraries such as timbre (https://github.com/ptaoussanis/timbre ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access