Chaincode logs

Santiago Figueroa Lorenzo

Hi Fabric experts,

I am attempting to develop a methodology to retrieve logs from the chaincode, in order to visualize in Kibana through ELK infrastructure. At the moment, I am retrieving chaincode logs using the logrus ( library. As part of the log is included relevant information such as channel id, chaincode name, method implemented and the type of log (information, error, etc). For instance:


In this regards, I have two questions:

1. Is there another more efficient way to retrieve logs?

2. Although the information at the time of retrieval is reliable (from chaincode container), with this method, once the data are in transit to Kibana I would have no way to trust on this data. Is there some mechanism, similar to what Ethereum does with its events, that allows to leave some mark in the ledger for these logs?

Thanks in advance,


Join to automatically receive all group messages.