Adding Teltonika RutOS via Syslog

Purpose

This guide explains how to forward the system log of Teltonika routers that run RutOS (for example RUT950 and RUT951) to Logsign USO over syslog. The integration covers access control events of the router (SSH and Web UI logins, failed logins, brute force counters and IP blocking), the dropbear SSH server, the web interface backend (uhttpd / vuci), OpenVPN server instances, scheduled commands (crond), firewall reloads, mobile and interface status messages and the Teltonika RMS cloud agent.

Prerequisites

  • Administrator access to the RutOS WebUI of each router.
  • Network connectivity from the router to the Logsign USO collector on your syslog port (TCP or UDP 514 by default).
  • A Logsign USO release that includes the Teltonika RutOS parser. Contact Logsign Support if you are not sure which release you run.

Step 1: Send the RutOS System Log to Logsign USO

RutOS can forward its system log to a remote syslog server. Menu names differ between RutOS firmware releases and router models, so check the Teltonika wiki page for your model (the logging or Events Log page) if the steps below do not match your WebUI.

  1. Log in to the RutOS WebUI.
  2. Open the logging settings of the router and enable sending the system log to a remote syslog server.
  3. Enter the IP address of the Logsign USO collector as the remote server, set the port (514 by default) and choose UDP or TCP.
  4. Keep the default RutOS message format. Do not add a custom prefix to the messages.
  5. Save and apply the settings.

Step 2: Add the Data Source in Logsign USO

Open the Logsign USO web interface and click + Device under Settings > Data Collection. Choose Syslog as the collection method, select Teltonika as the vendor and RutOS as the product, and enter the IP address of the router as the host. Click Save. Repeat this for every router. Once a router starts sending, events appear under Search.

Supported Message Format

RutOS sends standard BSD syslog (RFC 3164) messages. After the syslog priority, every message has a timestamp, the router host name, an optional program tag with a process ID and the message text:

Oct  6 18:03:11 rut952 Web UI: Invalid password attempt for "administrator" from 10.18.0.6 to 192.168.10.1 via HTTP, attempt 5 of 10
Oct  6 18:00:37 rut952 dropbear[31571]: Child connection from 10.18.0.6:60221
Oct  6 19:35:41 rut951 connections: Failed connection from IP 10.101.0.16 to 192.168.100.12, attempt 5/5. Address blocked.
Oct  6 19:42:20 rut951 openvpn(OpenVpnSite)[7709]: 203.10.113.101:23416 [vpnuser] Peer Connection Initiated with [AF_INET]203.10.113.110:22416

Program tags can contain spaces (Web UI, IP Block) or an OpenVPN instance name (openvpn(OpenVpnSite), openvpn@srv_site). Some messages, such as mobile data status lines, are sent with a literal <unknown> tag instead of a program name. These messages are still parsed, and Event.Prefix stays empty for them.

What Gets Collected

Logsign FieldRutOS Value
Time.GeneratedMessage timestamp (Mmm dd HH:MM:SS)
Device.HostNameRouter host name
Event.PrefixProgram tag (for example connections, Web UI, dropbear, openvpn(OpenVpnSite))
Process.PIDProcess ID in brackets after the program tag
Event.InfoFull message text
Event.ActionAction name of the classification (see Event Classification)
Source.UserNameUser name in login, logout and cron messages, the OpenVPN client name, or the CN of the client certificate
Source.IP, Source.PortAddress and port of the client. Source.City and Source.Country are filled from Source.IP.
Destination.IP, Destination.PortRouter address and port in Web UI, IP Block and blocking entry messages
Service.NameService in access control messages (for example SSH, HTTP). It is SSH for dropbear messages.
Event.CountAttempt number (attempt N) or the fail count of dropbear
Threshold.ValueAttempt limit (/M or of M)
Source.VirtualIPVirtual IP address that OpenVPN gives to the client
VPN.NameOpenVPN instance name from the program tag
Session.EndReasonReason in dropbear exit messages
Process.CommandLineCommand in crond messages
Device.InterfaceName, Event.ReasonInterface and reason in firewall reload messages

Every event is recorded with Vendor Teltonika, Product RutOS, EventSource Type Network System and Category Router.

Event Classification

Messages are classified by program tag and message text. When a classification has a fixed severity, that severity is used. The other classifications keep the syslog severity that the router sent.

RutOS eventEventMapSeverityEvent.VendorID
Successful login (access control layer, dropbear, vuci)Identity / User / Logininformation1
Failed login (bad or invalid password, nonexistent or locked user, rejected root login)Identity / User / Denywarning2
Failed connection counter (Failed connection from IP ... attempt N/M)Network / Session / Denywarning3
Address blocked after too many attemptsSecurity / BruteForce / Blockwarning4
IP blocking entry deletedNetwork / Session / Infoinformation5
SSH connection (dropbear Child connection from)Network / Session / Openinformation6
SSH exit before authenticationNetwork / Session / Closeinformation7
SSH logout (dropbear Exit (user))Identity / User / Logoutinformation8
OpenVPN peer connection initiatedVPN / User / Logininformation9
OpenVPN virtual IP assignedVPN / Other / Infoinformation10
OpenVPN inactivity timeoutVPN / User / Logoutinformation11
OpenVPN client certificate verifiedVPN / SSLVPN / Infoinformation12
Other OpenVPN messagesVPN / SSLVPN / Infosyslog severity13
Scheduled command (crond)System / Command / Infoinformation14
Firewall reloadSystem / Configuration / Infosyslog severity15
Interface and mobile status (netifd, qmux, mobile data messages)Network / Connection / Infosyslog severity16
Other RMS agent (rms_mqtt) messagesSystem / Operation / Infoinformation17
RMS connection error (Failed to connect, ERROR CODE: N)System / Operation / Errorerror18
SSH authentication step passed, extra authentication requiredIdentity / User / Infoinformation19
OpenVPN TLS or certificate verification errorVPN / User / Denywarning20
OpenVPN client exiting after a signalVPN / User / Logoutinformation21

Messages that match none of the entries above are still parsed and classified as System / Operation / Info with Event.VendorID 999. They keep the syslog severity that the router sent.

Notes and Limits

  • RutOS can log one login attempt in more than one layer: the access control layer (connections, SSH, Web UI, IP Block), the service itself (dropbear or uhttpd / vuci) and the brute force counter. Each line is kept and gets the same classification. If you count failed logins in a correlation rule, filter on Event.Prefix so that each attempt is counted once.
  • The syslog timestamp has no year and no time zone. Set the router clock to the same time zone as Logsign USO so that Time.Generated is correct.
  • The crond and rms_mqtt programs send every line with the err severity, also for normal activity. For this reason Logsign uses the fixed severities in the table above for them.
  • Most of the volume from a router is operational (interface, mobile modem, OpenVPN TLS detail and RMS lines). Take this into account when you plan EPS, and use a Data Policy to drop lines you do not need.
  • Access control messages are matched with IPv4 addresses. dropbear messages are matched with IPv4 and IPv6 addresses.

Verification

After both sides are saved, you can check the integration with a single login.

  • In Logsign USO, open Settings > Data Collection and confirm that the Teltonika RutOS source is receiving data.
  • Log in to the RutOS WebUI to generate a test event. In Logsign USO, go to Search and look for events with Vendor Teltonika and Product RutOS. The login should appear with EventMap Identity / User / Login, your user name in Source.UserName and the login service (for example HTTP) in Service.Name.
  • If the source is receiving data but no events show Vendor Teltonika, check that the router sends standard RFC 3164 messages without a custom prefix.
Was this article helpful?
0 out of 0 found this helpful

Articles in this section

See more
Become a Certified Logsign User/Administrator
Sign-up for Logsign Academy and take the courses to learn about Logsign USO Platform in detail. Enjoy the courses, and get your badges and certificates. In these courses, you'll learn how to use Logsign in your work and add value to your career.
Visit Our Blog
Our Logsign USO Platform illustrate our expertise. So do the blog. Through our blog posts, deepen your knowledge on various SecOps topics or get updated about important news & modern approaches for cybersecurity. Get into the habit of reading valuable information provided by Logsign. Be a step ahead.