Logs correlation
The DUM Engine uses Spring Sleuth to correlate logs between various services. If you are using Kibana or Splunk you can easily visualize the events that took place in a service agnostic way. The logs correlation also allows you to measure actual request processing performance.
What you need
The DUM Engine supports logs correlation by default. You can use third party tool to better analise your logs, please refer to Spring Sleuth official documentation for more info.
Example logs
The DUM Engine logs will include a special TraceID
whenever operation was executed as a result of a request, ex:
2018-04-23 09:32:32.391 INFO [dumEngine,733b06b483ce7872,f30b2c0320da0bfb,false] 6 --- [io-8484-exec-15] c.o.dum.engine.service.GroupService : Group with id 2d49074e-419f-4b45-88df-e3db40722a29 updated successfully.
2018-04-23 09:32:32.496 INFO [dumEngine,733b06b483ce7872,d5f2f7b2acf17132,false] 6 --- [io-8484-exec-13] c.o.d.engine.service.PolicyBatchService : Bath policies update.
2018-04-23 09:32:32.502 INFO [dumEngine,733b06b483ce7872,d5f2f7b2acf17132,false] 6 --- [io-8484-exec-13] c.o.dum.engine.service.PolicyService : Created new policy with id c422fdc9-cb9c-485a-b18b-da2331741bf1.
2018-04-23 09:32:32.510 INFO [dumEngine,733b06b483ce7872,d5f2f7b2acf17132,false] 6 --- [io-8484-exec-13] c.o.dum.engine.service.PolicyService : Created new policy with id c0fcc71f-2d09-43ae-9dac-76e80f302835.
2018-04-23 09:32:32.514 INFO [dumEngine,733b06b483ce7872,d5f2f7b2acf17132,false] 6 --- [io-8484-exec-13] c.o.dum.engine.service.PolicyService : Created new policy with id 740025db-ccc8-4d36-b36b-bb44af5af650.
2018-04-23 09:32:32.519 INFO [dumEngine,733b06b483ce7872,d5f2f7b2acf17132,false] 6 --- [io-8484-exec-13] c.o.dum.engine.service.PolicyService : Created new policy with id bbee5dea-ee17-4e70-bc02-89dfca13fc44.
2018-04-23 09:32:32.523 INFO [dumEngine,733b06b483ce7872,d5f2f7b2acf17132,false] 6 --- [io-8484-exec-13] c.o.dum.engine.service.PolicyService : Created new policy with id 1ff00c32-ab3c-4810-8156-a34fb73e9af0.
where 733b06b483ce7872
is the TraceID
value.