Skip to content

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 Log is configured on
  • Stored in a file on the node that the Log is 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#

apiVersion: logging.eda.nokia.com/v1alpha1
kind: Destination
metadata:
  name: my-router-syslog-destination
  namespace: eda
spec:
  syslog:
    address: 10.0.100.101
    protocol: UDP
    router: my-router
    routerKind: Router
  type: Syslog
cat << 'EOF' | kubectl apply -f -
apiVersion: logging.eda.nokia.com/v1alpha1
kind: Destination
metadata:
  name: my-router-syslog-destination
  namespace: eda
spec:
  syslog:
    address: 10.0.100.101
    protocol: UDP
    router: my-router
    routerKind: Router
  type: Syslog
EOF

Custom Resource Definition#

To browse the Custom Resource Definition, go to crd.eda.dev.

Destination

logging.eda.nokia.com / v1alpha1

SPEC

DestinationSpec defines the desired state of Destination

  • #
  • #
  • #
  • #

STATUS

DestinationStatus defines the observed state of Destination