Skip to main content
Version: 2.1

Logging

Logging configuration is a staged task that allows for configuring syslog behavior on selected devices.

Interface components

The logging task is divided into three stages, Version selection, Devices and Configuration.

Version

Depicted is an overview of the WeConfig logging version tabDepicted is an overview of the WeConfig logging version tab

The first stage is called Version, and presents you with a choice for which variant of syslog configuration, amongst the ones available in the current network, to set up. The reason for this view is that different device ranges and firmware versions support vastly different lines of configuration.

Click on the relevant version you want to configure to progress to the next stage.

Devices

Depicted is an overview of the WeConfig logging devices tabDepicted is an overview of the WeConfig logging devices tab

The second stage is called Devices, and presents a list of devices compatible with the selected version of syslog configuration. Any devices already selected in the topology will be preselected in this list, but the selection may be changed before procceeding.

Click on the button labeled "Confirm" to proceed.

Configuration

The final stage is called Configuration, and provides you with an interface to set up the relevant syslog configuration on the selected devices. How this view appears may drastically vary depending on the Version selection.

[WeOS 5.15.0 - WeOS 5.21.1] / [WeOS 4.29+]

Depicted is an overview of the WeConfig logging configuration tabDepicted is an overview of the WeConfig logging configuration tab

When configuring logging for WeOS 5.15 and up to 5.21.1. the interface may appear as above. Therein a list of sinks serve as the primary means of configuration, which can be added to via the "Add Sink" button near the bottom left of the interface. Additionally, beneath the list of sinks is a collapsed-by-default template list, which allows you to quickly setup some common sink parameters on targeted sinks.

The configuration options for this version of logging is as follows:

OptionDescription
Target TypeWhere the log messages are sent, see Target types.
TargetAdditional parameter depending on Target type.
Message formatThe syslog format, either rfc3164, rfc5425 or bsd.
SelectorWhich produced syslog messages are sent to this sink, see Selectors

Target Types

Four target types are available for WeOS 5.15 to 5.21.1:

TypeDescriptionTarget parameter
udp addressA specific IP address is the targetValid IPv4 Address, e.g 192.168.0.1
udp dhcpThe target is determined via DHCPN/A
file internalThe target is an internal on-device fileA valid file path, relative to the systems log file folder, e.g my/logs/mysyslog
file externalThe target is an external media deviceA valid file path, relative to the target media
warning

No two sinks can share the same target.

warning

When specifying file internal/external as the target, any parent directories must already exist on the device.

Selectors

A selector in the context of syslog configuration for WeOS 5.15 to WeOS 5.21.1 is a compination of three parameters. A facility, a modifier and a severity matcher. They can be observed in the image above under the "Selector" group for each sink.

Facilities

A facility specifies the area of origin for the message, and the selector will match only messages belonging to the specified facility.

WeOS 5.15 to WeOS 5.21.1 provides the following facilities:

FacilityDescriptionFacilityDescription
kernKernel log messagesntpTime-protocol events
userUser-level messagessecurityLog audit, for audit trail
mailUnusedconsoleLog alert
daemonSystem daemonslocal0Alarm sub-system
authSecurity and Authentication messageslocal1Unused
syslogUnusedlocal2PPP
lprUnusedlocal3Unused
newsUnusedlocal4OpenVPN, IPsec
uucpUnusedlocal5Reserved, OEM customer specific
cronUnusedlocal6Unused
authprivUnusedlocal7Unused
ftpUnused*Any facilities
Modifier

A modifier is a simple boolean, which specifies the selector as either an inclusion filter or an exclusion filter. If specified as Include any syslog message that matches this selector will sent to the target sink. If specified as Exclude any syslog messages that matches this selector will not be sent to the target sink.

Severities

Lastly, a selector consists of a severity selector, which may be used to narrow the range of messages to only those of a certain severity by dragging the slider from the right or respectively.

The available severities are as follows:

SeverityDescription
emergeEmergency, System Level service only
alertSystem level service only
critCritical, System level service only
errSevere error, a daemon/service may restart
warningSignificant problems, such a failure to reach Radius servers
noticeGeneral log messages, such as successful authentication
infoInformational, less important messages
debugDeveloper/low-level debug messages

[WeOS 5.22.0 +]

From WeOS 5.22.0 and forwards, logging configuration has been expanded with several new options, with a subset depicted beneath:

Depicted is an overview of the WeConfig logging configuration tabDepicted is an overview of the WeConfig logging configuration tab

Here, the interface is divided into five collapsable sections, Sinks, External Media, Sources, Destinations and Filters. In a slight deviation, let us start from the bottom:

Filters

Down at the last section you will find the filter specification, which is a list of zero-or-more filters specified for the syslog configuration. These function similarly to selectors in WeOS 5.15 to WeOS 5.21.1, but with the ability to specify a name for usage in sinks.

Destinations

In the second section from the bottom, you will find destination configuration, which sets up zero or more targets for sink composition. These share some similarity with target types in WeOS 5.15 to WeOS 5.21.1, as they dictate where generated syslog messages are delivered. However, they contain different options, first and foremost a name. Secondly, there are now three main target types: Console, File and Remote.

Console destination

The simplest of the destinations to configure, as it requires no further details, when a sink uses this destination, messages from the sinks sources will be logged to the console.

File destination

This destination type is used to send syslog messages to a local on-device file or connected media, such as a USB or SD-card. The media name may be specified either as an external media configured on the device, or as internal which will consider the file name relative to the /log/ folder.

note

When using internal media, any log messages stored there will be lost upon reboot.

Additionally, you may specify a log rotation policy by setting the maximum size of each log file, the number of log files to retain, and the number of compressed log files to retain for these kinds of destinations.

Remote destinations

This destination type is used to send syslog messages to some external location, by specifying a host, port, protocol and format. Host may be specified either via host name, for DNS lookup, DHCP, a static IPv4, or a static IPv6 address. The protocol may be either UDP, TCP or TLS, where choosing TLS will allow you to specify certificates to use for trust. The formats configurable are the same as in WeOS 5.15 to WeOS 5.21.1.

warning

When using UDP or TCP to send syslog messages, they will be sent in clear text and can be read by any interceptor.

Sources

Second from the top you will find the sources section, where the producers of syslog messages can be configured. These can either be local, on-device sources, and may include userspace or kernel messages if so, or they may be remote sources, in which case their port, protocol and format parameters must match the relevant destinations configured on other devices.

External media

To the right at the top you will find a small section dedicated to external media configuration, where you may configured how the log file is handled on the external media, filesize and count may be configured here.

Sinks

Lastly, you will find Sinks at the very top of the interface, a sink is a named configuration that combines zero-or-more sources with zero-or-more destinations and zero-or-more filters. Any selected sources and destinations will be marked in green. And the sink depicted above as macSink can be read as "recieve syslog messages from the you source, but not the me source, and if they match the filter specified by fil, send them to the goal destination". Of special note is perhaps the filters box, where applicable filters are combiend together using either &, for and, or |, for or.

note

Leaving the filter box empty is the equivalent to "any"

Ibex

Depicted is an overview of the WeConfig logging configuration tabDepicted is an overview of the WeConfig logging configuration tab

When configuring logging for Ibex, the interface may appear as above. Therein a simple list of sinks serve as the primary means of configuration, which can be added to via the "Add" button near the bottom of the interface.