0

Assume I have 5 MSF4j micro services and if those services are interconnected what will be the best mechanism to do logging?

My main concerns are?

1) Should logging has to be another separate micro service ?

2) If not we have to add logging component into all 5 micro services. In this case it will create separate log files for each one. So in that case what will be the best way to find debug information on logs? We may have to use field like co-relation id. If we user core-relation id like field what will be the best open source logging tool to visualize logs by filtering multiple log file with core-relation id?

Vishanth
  • 1,320
  • 3
  • 14
  • 26
lsc
  • 681
  • 3
  • 8
  • 26
  • See [Spring Cloud Sleuth](https://github.com/spring-cloud/spring-cloud-sleuth) and you shouldn't be logging to file but to a central logging facility (as explained [here](http://12factor.net/logs) ). Use something like the [ELK stack](https://www.elastic.co/products) for that. – M. Deinum May 30 '16 at 09:37

1 Answers1

1

You have to push your logs to a centralized logging application. You can use Elastic Stack, Splunk, Loggly or other log management systems.

Vishanth
  • 1,320
  • 3
  • 14
  • 26