LIGHTNING-LISTNETWORKEVENTS(7)
π LIGHTNING-LISTNETWORKEVENTS(7) β like, the whole manual page, bestie
okay so this is lightning-listnetworkevents β a Core Lightning RPC situation. Buckle in, it's actually so good.
β¨ NAME β¨
listnetworkevents β the command you use to ask your node "hey girl, what's been happening on the network lately?" π¦
πΈ SYNOPSIS πΈ
listnetworkevents [id] [index] [start] [limit]
look at her. four optional little args. no drama. β¨
π DESCRIPTION π
fr fr, this command was added in v25.12 β so if you're on something ancient, that's why she's ghosting you. π
The listnetworkevents RPC command pulls up the log of connections, disconnections and pings on the network. and likeβ¦ why do we care? because you can analyze it to evaluate node reliability and latency, that's why. character research, basically. π
β οΈ heads up bestie: theautocleanplugin deletes network events older than 30 days. so if your history is looking a little short, that's not a glitch. you can adjustautoclean-networkevents-ageto change this. π
now the args, one by one:
id(string, optional) β a node id. if you set it, only network events for this peer come back. basically "show me only this one's receipts". πindex(string, optional) (always"created") β this controls the ordering of results. the default iscreated. π₯start(u64, optional) β ifindexis specified,startmay be specified to start from that value, which is generally returned fromlightning-wait(7). πlimit(u32, optional) β ifindexis specified,limitcan be used to specify the maximum number of entries to return. no infinite scroll here, sorry. β¨
π¦ RETURN VALUE π¦
On success, an object containing networkevents is returned. it's an array of objects, where each object contains:
created_index(u64) β 1-based index indicating order this network event was created in. 1-based, so yes, the first one is 1, not 0. iykyk. π’timestamp(u64) β time this event was recorded, in seconds since January 1 1970 UTC. the classic. β°peer_id(pubkey) β the node the network connection was talking to. π«Άtype(string) β the type of event (currentlyping,connect,connect_failordisconnect). the whole little cast of characters. πreason(string, optional) β the cause of the event (if known). β¨duration_nsec(u64, optional) β the time taken. specifically: forping, the latency; forconnect/connect_fail, the time taken to get a result; fordisconnect, the time we were connected. she's versatile. π
π§ if type is "connect_fail"
connect_attempted(boolean) βTrueif we found an address we could attempt to connect to, e.g. ignoring Tor addresses if we don't have a proxy, and ignoring IPv6 addresses if we don't have IPv6 support. soFalsehere doesn't mean "we failed", it means "we never even got to try". important distinction, bestie. π
π AUTHOR π
Rusty Russell rusty@rustcorp.com.au is mainly responsible. legend behaviour, honestly. π
π SEE ALSO π
lightning-autoclean(7)lightning-listpeers(7)
β RESOURCES β
Main web site: https://github.com/ElementsProject/lightning β go look, it's giving main character energy. π₯
k that's the whole page, mwah π β this was Core Lightning v26.06.9, LIGHTNING-LISTNETWORKEVENTS(7), and yes she ate. periodt. ππ
π¦ where this page comes from
- nixpkgs unstable: clightning 26.06.9
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms