Destination#
Logging → DDestinations
A logging Destination receives log messages captured by one or more Source resources. The Log deploys the Destination to a node and determines which Source resources are used for it.
The application supports three destination types:
- Stored in memory on the node that the
Logis configured on - Stored in a file on the node that the
Logis configured on - Sent to an external syslog server
Rotation and retention#
Different operating systems accept different parameters for Destination resources of type Memory and File. Some, such as SR Linux, monitor file size, while others, such as SR OS, monitor the number of lines or the log file's time span.
If the rotation parameters are not defined, the defaults for that particular operating system are used. If they are defined, then the Destination may not be configurable across multiple operating systems.
Syslog router#
For a Destination of type Syslog, the syslog server can be reached through the out-of-band ManagementRouter, the DefaultRouter, or a virtual Router.
Dependencies#
Router#
If the routerKind is set to Router, then a valid Router resource reference must be provided.
Referenced resources#
The Destination does not reference any other EDA resources.
Examples#
Custom Resource Definition#
To browse the Custom Resource Definition, go to crd.eda.dev.
Destination
SPEC
DestinationSpec defines the desired state of Destination
-
Rotation settings for a Memory or File destination.
-
Maximum number of log entries kept in the in-memory buffer. Only supported on SR OS.
format: int64range: >= 1 -
Maximum size of the in-memory buffer, in megabytes. Only supported on SR Linux.
format: int64range: >= 1 -
Interval, in minutes, at which the current log file is closed and a new one is started. Only supported on SR OS.
format: int64range: >= 1 -
File size, in megabytes, at which the current log file is closed and a new one is started. Only supported on SR Linux.
format: int64range: >= 1 -
Number of rolled-over log files to keep before the oldest is discarded.
format: int64range: >= 1
-
-
Settings for a syslog log target.
-
Address of the syslog server: an IPv4 address, IPv6 address, or DNS name (FQDN).
-
Transport protocol used to send syslog messages.
default: "UDP"enum: "TCP", "UDP", "TLS" -
Remote port on the syslog server.
format: int32range: 0 to 65536 -
Name of the Router custom resource used to reach the syslog server.
-
Router kind used to reach the syslog server.
enum: "DefaultRouter", "ManagementRouter", "Router" -
Name of the TLS profile used when syslog is sent over TLS.
-
-
Type of log target.
enum: "Memory", "File", "Syslog"
STATUS
DestinationStatus defines the observed state of Destination