Documentation
¶
Overview ¶
Package logparse turns algod node.log lines into counts, templates and events. A byte-level prefilter handles the known noisy lines without decoding JSON: agreement trace lines, transaction pool floods and HTTP access lines. The rest become message templates, and specific extractors turn known lines into events.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Extract ¶
type Extract struct {
Type string // connect, disconnect, conn-reset, handshake-eof, gossip-stream, outgoing, incoming, catchup-start, catchup-end, closed-account, panic, fatal, ledger-error
Addr string // the peer, or for closed-account the account
Incoming bool
Reason string
Delay int64 // MessageDelay, ns
PeerID string
Protocol string
Message string
Remote string
IP string // the remote IP when Addr is a host name
}
Extract is a structured event pulled from a known line.
type Line ¶
type Line struct {
Kind Kind
Time time.Time
Level string // info, warning, error, ...
Template string
Msg string
TraceType string // agreement message type for trace lines
AppID string // app for pool-flood lines, "" if none
HTTPPath string
HTTPCode string
Self bool // a request algodtop made, from algod's request log
Extract *Extract
Round uint64 // for BlockAccepted / RoundConcluded
}
Line is one parsed log line.