Documentation
¶
Overview ¶
Package source is the source behavior: the syslog identifiers that wrote to the systemd journal of the host, read with journalctl on each Linux host.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Behavior = behavior.Register(behavior.Define( "source", "The sources that write to the systemd journal", behavior.Title("Log source"), behavior.Node, behavior.Under(entry.Behavior), behavior.API, behavior.Area(area.Logs), behavior.CLI, behavior.Platform(behavior.PlatformLinux, newLinux), behavior.Read("list", List). NotAFact("the sources are what journald holds now, not a fact of the host"). Runs("journalctl"). Describe("List the sources of the journal"). Explain("Runs journalctl --field=SYSLOG_IDENTIFIER: each syslog identifier "+ "that has an entry, once, sorted. A name here is what log list "+ "takes as unit when the source is a systemd unit."). Example("The sources", ListInput{}, []Source{{Name: "cron"}, {Name: "nginx"}, {Name: "sshd"}}, behavior.Prints("journalctl --field=SYSLOG_IDENTIFIER", "sshd\nnginx\ncron\n\n"), ), ))
Behavior is the sources of the systemd journal, under the log: each syslog identifier that has an entry. They are what journald holds now, not a fact of the host, so journalctl reads them, not gohai. It runs on each Linux host; macOS has no journal, and reports skipped.
Functions ¶
This section is empty.