---
title: "Sending device syslog to NetSense"
description: "Point your OLTs and switches at the NetSense agent over syslog to unlock real-time ONU status, partial PON detection and port flapping alerts, with per-vendor commands, relay setups and the traps to avoid."
---

> Documentation Index
> Fetch the complete documentation index at: https://netsense-nms.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Sending device syslog to NetSense

SNMP polling gives NetSense metrics every poll cycle; **syslog gives it events the moment
they happen**. With device syslog flowing, NetSense unlocks real-time ONU status changes,
partial PON down detection, and port flapping alerts, and every device gets a searchable
Syslog tab.

Setting it up is one config block per device: point the device's syslog at your NetSense
agent's IP, UDP port 514.

![Syslog flow: the device sends syslog over UDP 514 to the on-premises NetSense agent, pinned to a source IP matching the device's IP in NetSense; the agent binds each line to the device and ships it to NetSense](https://netsense-nms.com/docs/_nimbus/md/axzkw/syslog-flow.svg)

## Why it's worth doing

Without syslog, ONU status refreshes only on the SNMP cycle (every ~30 minutes on current
builds, up to 12 hours on old ones), and many OLT models give no down reason over SNMP.
With syslog:

- **Live ONU status**: an ONU goes down and NetSense reflects it within ~30 seconds.
- **Down reason** (Power Off from a dying gasp, or Optical Loss) arrives within seconds.
  Some OLT models also expose the reason over SNMP, but only at poll speed, and many don't
  expose it at all.
- **Partial PON Port Down**: the alarm counts up/down syslog events per interval and fires
  on a threshold breach; it needs OLT syslog to work at all.
- **Port flapping alerts** on switches, BNGs, servers and OLT uplinks: they activate once
  the device's syslog is flowing.
- **A Syslog tab** per device, searchable by message and severity over a chosen time
  range.

## The one rule that matters: the source IP

NetSense binds an incoming syslog line to a device by the line's **source IP address**. If a
device sends syslog from a different interface (an OSPF interface, a tunnel/WireGuard
address, a NAT'd IP), the logs arrive but cannot be matched to the device, and they are
effectively lost.

So on every device: **pin the syslog source IP to the same IP the device has in NetSense**
(usually its management or loopback address). The per-vendor commands below include this.

:::note
Transport is **UDP port 514** and traffic flows **device → agent**, the opposite direction
from SNMP (agent → device, UDP 161). Working SNMP and ping therefore do **not** prove syslog
can flow: it's a different port in a different direction. See
[If syslog doesn't arrive](#if-syslog-doesnt-arrive).
:::

## Huawei switches (S-series, CloudEngine)

```txt
system-view
info-center enable
info-center loghost <agent-ip> source-ip <device-ip-in-netsense> facility local4
info-center max-logfile-number 10
save
```

- Use `facility local4`. (`facility local` also works on some builds, but standardize on
  `local4`.) CloudEngine (CE) models use the identical config.
- `max-logfile-number` caps the on-box log ring (10-30 is typical) so logging can't fill
  flash; optional but recommended.
- On **NE40E** routers, remember to `commit`. Apply the same block on OLTs that support the
  `info-center` family, not only on switches.
- Some builds expose a channel/level form instead. Set the destination on the `loghost`
  channel and `commit`:

  ```txt
  system-view
  info-center loghost <agent-ip> channel loghost level notification
  commit
  ```

## Huawei OLTs (MA5600 / MA5680 / MA5800 family)

These use the `loghost add` form. Note that on Huawei OLTs, `loghost` and `syslog` are
distinct subsystems. You must **enable the syslog subsystem first**, which unlocks the
`info-center` / remote-log commands:

```txt
config
info-center enable
syslog enable alarm-event
syslog output all
loghost add <agent-ip> <name>
loghost activate ip <agent-ip>
```

The `<name>` token is a label for the server, typically the agent hostname
(`nsa.<customer>.netsense.app`). If you're validating message parsing across models, MA5608T
and MA5800-X2 are the two reference builds we compare against.

## Optilink OLTs

Optilink OEM OLTs run Huawei-style firmware but use different syslog keywords. Two forms seen
in the field:

**GPON `OP-GOLT-948`: multi-channel `info-center` block, host with level-list:**

```txt
info-center monitor 0
...
info-center monitor 15
info-center flash
info-center snmp-agent
info-center <agent-ip>
info-center host <agent-ip> level-list 0 1 2 3 4 5 6 7 module syslog
info-center facility system
```

**EPON `OP-EOLT-9702`: `syslog add` / `syslog activate` form:**

```txt
syslog add <agent-ip>
syslog activate ip <agent-ip>
```

:::note
On some Optilink builds the config above gets syslog **transport** working (packets reach
the agent), but the firmware doesn't emit usable per-ONU events, so ONU down reasons can be
missing or show as **Unknown**. That's an OEM firmware limitation, not a delivery problem;
see [If syslog doesn't arrive](#if-syslog-doesnt-arrive).
:::

## VSOL OLTs

Primarily web-UI driven. **System Configuration → System Log → Syslog Server** tab: set
Syslog Server = **Enable**, Server IP = your agent's IP, Server Port = **514 (UDP, default)**,
and Submit. Tick the boxes so events are written to the local log **and** sent to the remote
syslog.

CLI form on models that expose it:

```txt
syslog server enable <agent-ip>
syslog server alarm enable
```

Configuring the server is not enough on this platform. You must also enable the events in
the **Alarm Profile** (see [Enable the events themselves](#olts-with-alarm-profiles-enable-the-events-themselves)).
Full VSOL walkthrough, including the Login Access List that blocks SNMP:
[VSOL and Syrotech OLTs](https://netsense-nms.com/docs/vendors/vsol-syrotech-olts/).

## Syrotech OLTs (EPON/GPON)

Web UI is the same **System Log → Syslog Server** tab as VSOL. CLI form:

```txt
syslog server ip <agent-ip> port 514
```

(Some models use the `syslog add <agent-ip>` then `syslog activate ip <agent-ip>` form
instead.) Confirm with `show running-config | include syslog`. Syrotech emits ONU events via
`auditd`, e.g.:

```txt
Syrotech-gpon-olt auditd[0]: ONU Offline    PON 0/5 ONU 2 sn TPLGB5A65A58 .
Syrotech-gpon-olt auditd[0]: ONU Dying Gasp PON 0/5 ONU 2 sn TPLGB5A65A58 .
Syrotech-gpon-olt auditd[0]: ONU Online     PON 0/6 ONU 9 sn TPLG4A280238 .
Syrotech-gpon-olt auditd[0]: ONU Port Los   PON 0/6 ONU 9 sn TPLG4A280238  LAN1 LINK DOWN.
```

These carry offline/online, Dying Gasp and per-LAN-port LOS: exactly what NetSense turns
into live status and down-reason. Full Syrotech walkthrough (Alarm Profile, firmware quirks,
test-ONU verification): [VSOL and Syrotech OLTs](https://netsense-nms.com/docs/vendors/vsol-syrotech-olts/).

## Genexis Saturn / Mars OLTs

These have **two independent log subsystems**, and the one carrying ONU events is off by
default. It is the single most common reason a Genexis fleet shows ONU down reasons late
or not at all:

```txt
ont-logging timestamps datetime
ont-logging <agent-ip>          ! forwards ONU/ONT events to NetSense
logging <agent-ip>              ! general system log
logging facility system
```

`logging` alone looks like working syslog but never carries ONU events; `ont-logging` is
what pushes them. Apply it **per OLT**. Full explanation, the `%ONTMNT` event format and the
POWER_OFF / LOSI / LOAMI reason table:
[Genexis Saturn and Mars OLTs](https://netsense-nms.com/docs/vendors/genexis-saturn-mars-olts/).

## Cisco switches

No remote-syslog block differs meaningfully from the standard `logging host` form, but two
field notes matter:

- **Timestamps / NTP.** Make sure the device has NTP and `service timestamps log datetime`
  set so every line carries a stable, correct time. That is invaluable when correlating an
  outage across devices.
- Cisco (and Rikom) switches are the ones most often found **silently not sending** while
  Huawei on the same site works. If a Cisco device's Syslog tab stays empty, treat it as a
  delivery problem and walk the [troubleshooting](#if-syslog-doesnt-arrive) list. Don't
  assume the config "took".

## MikroTik

A vetted MikroTik syslog recipe isn't captured here yet. If you're configuring one, confirm
the working `/system logging action` + `remote` setup with support so we can add it.

## OLTs with alarm profiles: enable the events themselves

On some OLT platforms (VSOL, Syrotech and similar web-UI OLTs), configuring the syslog
server is **not enough**: the OLT also has an **Alarm Profile** deciding which events it
generates at all. If every ONU alarm type is unchecked there, the transport is perfect and
still nothing arrives, because the OLT never produces the events.

Go to **Profile Configuration → Alarm Profile → ONU tab** and enable the alarm types. We
recommend enabling everything **except** ONU Temp High, ONU Temp Low and Battery Volt Low,
which mostly produce noise in normal climates. Submit, and ONU events start flowing.

:::caution
Enabling ONU **port**-related alarms logs the state of every ONU Ethernet port, which can be
a lot of syslog volume on a busy OLT. This is no problem for NetSense, but be aware of it if
the OLT also logs locally to flash.
:::

:::note
The "Save Syslog to Flash" tab on these OLTs controls local logging to the OLT's own flash
only. It has no effect on what NetSense receives; you don't need to touch it.
:::

## Already running a syslog server? Relay to NetSense

If a customer already centralizes syslog (Observium, Graylog, a bare rsyslog/syslog-ng box),
you don't have to re-point every device. Point the devices at the existing collector as
usual and **relay a copy** to the NetSense agent. This also gives you redundancy: two
independent collectors receive every line.

On an **rsyslog** collector, add a forward line to `/etc/rsyslog.conf` (or a file in
`/etc/rsyslog.d/`) and restart rsyslog:

```txt
*.* @@<agent-ip>:514
```

- `@@` = **TCP**, single `@` = **UDP**. Use whichever the agent's listener is configured for
  (ask support; UDP 514 is the default, TCP is set up on request).
- If the collector can't reach the agent's private IP directly, relay to a **public IP with
  a port redirect**, e.g. publish `11514` on the public edge and DNAT `11514 → 514` to the
  agent's private IP.

:::note
Observium's syslog module itself runs on top of either rsyslog or syslog-ng. Check which the
customer uses before editing config, the forward syntax differs (`syslog-ng` needs a
`destination`/`log {}` block rather than the one-liner above).
:::

## If syslog doesn't arrive

Working SNMP and ping do **not** prove syslog can flow (different port, different direction).
The usual suspects, in order:

1. **A transit router filters UDP 514.** SNMP is often explicitly permitted while syslog has
   no rule. Permit UDP 514 from the device to the agent on every router in the path.
2. **No return route to the agent.** If the device's default gateway is a transit router and
   the agent sits on a NAT'd private IP, the router may have no route back. Agent-initiated
   SNMP works (outbound) while device-initiated syslog dies. From the device, ping and
   traceroute the agent IP; if both die at the first hop, it's L3 routing, not NetSense.
   Note that OLT→agent syslog **can't be fixed with a port redirect**; it needs proper
   routing.
3. **Wrong source IP** (see [the rule](#the-one-rule-that-matters-the-source-ip)): logs reach
   the agent but never bind to the device. Pin the `source-ip`. A common variant: the device
   sends from its WireGuard/public IP instead of its own. Bind the source explicitly.
4. **Events not enabled** on alarm-profile OLTs, or **ONU/ONT logs not enabled** separately
   (Genexis `ont-logging`; VSOL/Syrotech Alarm Profile). The system log flows but ONU events
   don't.

To locate where packets are lost, capture on the agent and on intermediate hops:

```txt
tcpdump -i any -n udp port 514          # on the agent VM: do lines arrive at all?
tail -f /var/log/messages               # confirm content once packets land
```

If syslog packets appear on a transit router's device-facing port but not at the agent, the
block is on the far side; if they never appear at all, the device isn't sending. Support can
run the agent-side capture for you on request.

:::note
**Vendor limitation to be aware of:** a few OLT builds (e.g. some Optilink units) send syslog
that reaches the agent but lacks usable per-ONU data: the transport is fine, the firmware
just doesn't emit the events. On such units, an optical disconnect may show as **Unknown**
rather than a reason. If a down ONU isn't flagged Power Off, treat it as an optical-path
issue.
:::

## Verify

Open the device in NetSense and check its **Syslog** tab: new events should appear shortly
after the configuration. Force one: reboot a test ONU (expect an offline / Power Off event)
or flap an unused port. Once several devices are sending, the syslog-driven alerts
(real-time ONU status, Partial PON down, Port flapping) activate automatically.

The Syslog tab also reports delivery. An icon next to the tab name, on device and ONU
pages, warns when no syslog has ever been received from the device, or none in the last 3
days (its tooltip shows when the last message arrived). A device that has never sent
syslog shows **No Syslog Data** in the tab.

## Related

- [VSOL and Syrotech OLTs](https://netsense-nms.com/docs/vendors/vsol-syrotech-olts/): Login Access List, Alarm
  Profile, firmware quirks.
- [Genexis Saturn and Mars OLTs](https://netsense-nms.com/docs/vendors/genexis-saturn-mars-olts/): the
  `logging` vs `ont-logging` split in full.

Source: https://netsense-nms.com/docs/guides/device-syslog/index.mdx
