Skip to content

Log#

Logging → LLogs

The Log connects logging Source and Destination resources. It specifies:

  • One or more Source resources
  • One or more Destination resources
  • One or more TopoNode resources

Each resource can be selected individually or by label.

Upon creation, the Log deploys the necessary configuration to all specified nodes. It sends all log messages captured by the selected Source resources to all selected Destination resources.

Dependencies#

Source#

A logging Source filters the messages generated by a node by severity, process, message content, or a combination of those.

Destination#

A logging Destination processes the messages captured by the Source and stores them either on the node, or sends them to an external syslog server.

TopoNode#

Configuration to capture, store, or send log messages is deployed to the nodes selected by the Log.

Referenced resources#

The Log does not reference any other EDA resources.

Examples#

apiVersion: logging.eda.nokia.com/v1alpha1
kind: Log
metadata:
  name: my-log
  namespace: eda
spec:
  destinations:
    - file-destination
    - my-mgmt-syslog-destination
  nodeSelectors:
    - eda.nokia.com/security-profile = managed
  sources:
    - bgp-source
cat << 'EOF' | kubectl apply -f -
apiVersion: logging.eda.nokia.com/v1alpha1
kind: Log
metadata:
  name: my-log
  namespace: eda
spec:
  destinations:
    - file-destination
    - my-mgmt-syslog-destination
  nodeSelectors:
    - eda.nokia.com/security-profile = managed
  sources:
    - bgp-source
EOF

Custom Resource Definition#

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

Log

logging.eda.nokia.com / v1alpha1

SPEC

LogSpec defines the desired state of Log

  • #
  • #
  • #
  • #
  • #
  • #

STATUS

LogStatus defines the observed state of Log

  • #