zeta-chain / node

ZetaChain’s blockchain node and an observer validator client
https://zetachain.com
MIT License
169 stars 109 forks source link

Allow observer to share logs to external parties #2467

Open lumtis opened 4 months ago

lumtis commented 4 months ago

Describe the Issue

Implement a solution that allows an observer to voluntarily share logs to a specific channel.

Requirements:

Tasks:

cc @CryptoFewka @morde08

CryptoFewka commented 4 months ago

Supporting an external log destination seems like something that is outside the scope of zetaclientd when it already logs to syslog.

Would this feature be satisfied with a reference implementation of an off the shelf open-source log forwarding solution that would transmit logs to us? It could go as far as to be an installation script to download, install and configure an open source forwarder pointed at our infrastructure.

If we want to embed the forwarder's installation inside zetaclientd we could if that better fits the vision you have in mind for this.

Regardless of the ultimate architecture, would it be possible to get a list of log filters or grep strings to either: A. Filter out log messages that shouldn't be forwarded for a default forward strategy. B. Explicitly include log messages for a default do not forward strategy.

lumtis commented 4 months ago

Regardless of the ultimate architecture, would it be possible to get a list of log filters or grep strings to either: A. Filter out log messages that shouldn't be forwarded for a default forward strategy. B. Explicitly include log messages for a default do not forward strategy.

Is it something you need from the protocol team?