0xB10C / peer-observer

Tool to monitor for P2P anomalies and attacks using Bitcoin Core honeynodes
https://public.peer.observer
MIT License
8 stars 1 forks source link

Implement filter for `logger` tool #48

Open 0xB10C opened 2 months ago

0xB10C commented 2 months ago

The logger tool is quite spammy currently as it prints all events (p2p message, connections, addrman (if enabled), validation, and mempool). It would be good to have a feature where we can pass a command line argument to enable only the desired event types. E.g. passing --log-p2pmsgs would only log p2p messages. Passing --log-p2pmsgs --log-connections would log p2p messages and p2p connections.

i-am-yuvi commented 1 month ago

Indeed that would be interesting!! using match statement before printing might work for this!!