Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Logging in microservices

assume we've got a number of Web API microservices, and they are written in different languages/framworks (some are ASP.NET Web API, some are NodeJS, some are Flask etc.).

I would like to log every request made to any service, and I would prefer a centralized log.

What method/tools should I use?

Regards, Daníel

like image 533
dabs Avatar asked Apr 23 '15 17:04

dabs


1 Answers

There is a very famous approach called ELK:

  • Elasticsearch: Search and analyse data in real time
  • Logstash: Collect, parse and enrich data from each machine
  • Kibana: Explore and visualise your data graphically

So all the information is collected by Logstash, stored in Elasticsearch and visualised using Kibana UI.

With this stack no matters who is generating the information (or what technology is using).

like image 159
jfcorugedo Avatar answered Sep 28 '22 12:09

jfcorugedo