mirror of
https://github.com/status-im/msgstat.git
synced 2026-08-31 05:31:17 +00:00
cc31f4f073f32cbc76192bade43fd593ff97d3db
Msgstat
Msgstat provides a CLI tool which analyses status-go log files and generates corresponding output of information related to messages delivered over whisper (either rpc or p2p).
Commands
-readfile
Msgstat -readfile expects to be provided a path to the proper log file which will be processed to generate reports.
> msgstat readfile ./logs/status-im/status-go/11.21.2017.log
-read
Msgstat -read expects to be data from a log file written into stdin which will be processed to generate reports.
> cat ./logs/status-im/status-go/11.21.2017.log | msgstat read
Report Format
Msgstat currently outputs parsed message into the following format:
Envelope #4T0NEM0Qrcm1uVVhBVmhYYW9HS1AwQ01xWmhwQmJGSDBnOHZpWnN2
FromDevice <4T0NEM0Qrcm1uVVhBVmhYYW9HS1A>
ToDevice <4T0NEM0Qrcm1uVVhBVmhYYW9HS1A>
Pipeline: RPC
Time: 2010-11-02
Status: Delivered
Payload: {
Sell the wire around slack.
}
Envelope #4T0NEM0Qrcm1uVVhBVmhYYW9HS1AwQ01xWmhwQmJGSDBnOHZpWnN2
FromDevice <4T0NEM0Qrcm1uVVhBVmhYYW9HS1A>
ToDevice <4T0NEM0Qrcm1uVVhBVmhYYW9HS1A>
Pipeline: P2P
Time: 2010-11-02
Status: Delivered
Envelope #4T0NEM0Qrcm1uVVhBVmhYYW9HS1AwQ01xWmhwQmJGSDBnOHZpWnN2
FromDevice <4T0NEM0Qrcm1uVVhBVmhYYW9HS1A>
ToDevice <4T0NEM0Qrcm1uVVhBVmhYYW9HS1A>
Pipeline: P2P
Status: Pending
Time: 2010-11-02
Payload: {
Back to freezia around slack.
}
Envelope #4T0NEM0Qrcm1uVVhBVmhYYW9HS1AwQ01xWmhwQmJGSDBnOHZpWnN2
FromDevice <4T0NEM0Qrcm1uVVhBVmhYYW9HS1A>
ToDevice <4T0NEM0Qrcm1uVVhBVmhYYW9HS1A>
Pipeline: P2P
Status: Failed
Time: 2010-11-02
Languages
Go
78.5%
Makefile
21.5%