Documentation
¶
Overview ¶
The syslog package holds the tools needed to perform log forwarding from Juju to a remote syslog (RFC 5424) host.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// Sender is the message sender this client wraps.
Sender Sender
}
Client is the wrapper around a syslog (RFC 5424) connection.
func OpenForSender ¶
func OpenForSender(cfg RawConfig, opener SenderOpener) (*Client, error)
OpenForSender connects to a remote syslog host and wraps that connection in a new client.
type RawConfig ¶
type RawConfig struct {
// Enabled is true if the log forwarding feature is enabled.
Enabled bool
// Host is the host-port of the syslog host. The format is:
//
// [domain-or-ip-addr] or [domain-or-ip-addr][:port]
//
// If the port is not set then the default TLS port (6514) will
// be used.
Host string
// CACert is the TLS CA certificate (x.509, PEM-encoded) to use
// for validating the server certificate when connecting.
CACert string
// ClientCert is the TLS certificate (x.509, PEM-encoded) to use
// when connecting.
ClientCert string
// ClientKey is the TLS private key (x.509, PEM-encoded) to use
// when connecting.
ClientKey string
}
RawConfig holds the raw configuration data for a connection to a syslog forwarding target.
Click to show internal directories.
Click to hide internal directories.