Distributed Logging [clone]

Learn about logging and its need in a distributed system.

Logging

A log file records details of events occurring in a software application. The details may consist of micro-services, transactions, service actions, states to a secondary interface, or anything helpful in debugging the flow of an event in the system. Logging is crucial to monitor the application’s flow.

Need for logging

A question can be raised: why can’t we print out our statements to understand the application flow? It’s possible, but not ideal. Simple print statements have no way of tracking the severity of the message. Here logging emerges.

Logging allows understanding our code, locating unforeseen errors, fixing the identified errors, and visualizing the application’s performance. This way, we are not blind in production, and we know how things are running in the system.

Log analysis helps to identify if the system

  • Adheres to internal security policies, external regulations, and audits
  • Recognizes and responds to data breaches and other security problems
  • Troubleshoots system, computer, or network
  • comprehends users’ actions while investigating

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy