Documentation
¶
Overview ¶
Package logscrub cuts IP addresses out of log text that leaves a node (the node journal, agent.proto JournalEntry). The agent cleans before sending and the panel cleans again on intake. Names, versions, times and hashes stay, except in xray's text (Hosts), where a name may be a destination.
Index ¶
Constants ¶
const ( // IP replaces an address; IPPort an address with a port (the port too: a client's source port is noise and // makes every line unique). IP = "<ip>" IPPort = "<ip>:port" Host = "<host>" )
Variables ¶
var JournalAttrs = [...]string{
"inbound", "protocol", "profile", "port", "state", "reason", "code", "backend", "mode", "version",
"kernel", "iface", "check", "fix", "count", "err", "error",
}
JournalAttrs are the only attribute keys a journal entry carries, on the node and again in the panel (agent.proto JournalEntry).
Functions ¶
func Addrs ¶
Addrs replaces every IP address in s by IP, or by IPPort when it carries a port. Unspecified and loopback addresses (0.0.0.0, ::, 127.0.0.1, ::1) are the node's own and stay. Addrs(Addrs(s)) == Addrs(s).
Types ¶
This section is empty.