Juniper MX/EX

Download PDF

Rules, dashboards, and triggers for Juniper MX router and EX switch (Junos) syslog events, including alarm, DDoS protection, and routing protocol alerts

Overview

Juniper MX-series routers and EX-series switches run Junos OS and emit syslog for management-plane authentication, configuration changes, routing-protocol state, control-plane DDoS protection, and chassis alarms. These rules parse that general system and routing syslog stream. The security-gateway (SRX) product line has its own app, juniper_srx, for RT_FLOW session-flow logs, which are not covered here.

App Function

  • Parse Junos management-plane audit events: session login/logout, configuration-mode entry/exit, and commit operations
  • Parse control-plane DDoS protection policer violations
  • Parse unauthorized SNMP community attempts and unconfigured-BGP-neighbor connection attempts, and map them to MITRE ATT&CK
  • Parse interface link state and BGP/OSPF routing-neighbor state changes
  • Parse chassis alarm set/cleared events (license, protocol feature, and hardware conditions)
  • Parse NTP server unreachability (time-sync failure) events
  • Classify all of the above with the standard Event Class/Type taxonomy and compliance framework tags
  • Provide dashboards for general activity and for security events
  • Alert on unauthorized access attempts, DDoS violations, major alarms, and routing/interface state loss

Vendor Documentation

Device Configuration

Configure the MX or EX device to send syslog messages to LogZilla:

text
set system syslog host <logzilla-ip> any any
set system syslog host <logzilla-ip> port 514
commit

Messages are recognized by their daemon name and message content (mgd, rpd, jddosd, snmpd, mib2d, xntpd, vccpd, alarmd, craftd). The default (non-structured-data) Junos syslog format is parsed; RFC 5424 structured-data output is not.

Verification

Log into the device (or wait for a routine commit/login), then confirm events appear in LogZilla with Vendor: Juniper and Product: Junos tags.

Incoming Log Format

Junos daemons emit <process>[<pid>]: <MSGID>: <message> (or, for a few daemons that don't use a formal message ID, plain free-form text). Some deployments have been observed, in the field, to duplicate the hostname ahead of the process name on the wire; the rule handles both forms.

For unconfigured-BGP-neighbor connection attempts, the ephemeral source port suffix (203.0.113.20+51413) is stripped from the stored message so that repeated attempts from the same source deduplicate instead of being stored as thousands of unique events.

Parsed Metadata Fields

Tag NameExampleDescription
VendorJuniperVendor name
ProductJunosProduct name (EX and MX cannot be distinguished from this log content)
Event ClassAuth, Config, Security, Network, HA, SystemCross-vendor classification
Event TypeSession, Configuration, Threat, Access Control, Interface, RoutingEvent subtype
MitreIdT1110MITRE ATT&CK technique ID
MITRE TacticCredential AccessMITRE ATT&CK tactic
Message TypeUI_LOGIN_EVENT, DDOS_PROTOCOL_VIOLATION_SET, bgp_peer_addr_ok, Alarm setJunos message type identifier (formal MSGID, or literal leading text for daemons without one)
ActionUp, Down, Set, ClearedState transition or alarm state
Useruser1Management-plane username (HC)
SrcIP203.0.113.7Source IP: unauthorized SNMP/BGP connection attempts (HC)
DstIP198.51.100.10Destination IP: unauthorized SNMP connection attempts, unreachable NTP servers (HC)
Neighbor IP10.0.0.1BGP/OSPF routing-neighbor IP address (HC)
Interfacege-0/0/1.0Interface name
BGP AS65000BGP peer autonomous system number
Juniper User Classsuper-userJunos login class (RBAC)
Juniper Client Modejunoscript, netconf, cliManagement channel used for the session
Juniper DDoS ProtocolOSPF:aggregateControl-plane protocol/exception exceeding its DDoS policer bandwidth
Juniper Alarm LevelMajor, MinorChassis alarm severity
Juniper Alarm ReasonBGP Routing Protocol(47) usage requires a licenseChassis alarm condition text
Compliance - <framework>1Applied per Event Type

MITRE ATT&CK Mapping

EventMITRE IDTacticDescription
SNMPD_AUTH_FAILURET1110Credential AccessUnauthorized SNMP community attempt
bgp_peer_addr_ok / bgp_listen_acceptT1110Credential AccessConnection attempt from an unconfigured BGP neighbor

Log Examples

Management-plane login

text
mgd[12345]: UI_LOGIN_EVENT: User 'user1' login, class 'super-user'
localre[12345], ssh-connection '', client-mode 'junoscript'

Configuration commit

text
mgd[85992]: UI_COMMIT: User 'user1' requested 'commit' operation
(comment: scheduled maintenance)

DDoS protection violation

text
jddosd[5678]: DDOS_PROTOCOL_VIOLATION_SET: Warning: Host-bound traffic
for protocol/exception OSPF:aggregate exceeded its allowed bandwidth at
fpc 1 for 4821 times, started at 2026-01-15 08:30:00 CST

Unauthorized SNMP community

text
snmpd[5679]: SNMPD_AUTH_FAILURE: nsa_log_community: unauthorized SNMP
community from 203.0.113.7 to 198.51.100.10 (public)

Interface link down

text
mib2d[5680]: SNMP_TRAP_LINK_DOWN: ifIndex 512, ifAdminStatus up(1),
ifOperStatus down(2), ifName ge-0/0/12

BGP neighbor state change

text
rpd[1829]: RPD_BGP_NEIGHBOR_STATE_CHANGED: BGP peer 192.0.2.1
(Internal AS 65000) changed state from Established to Idle (event Stop)
(instance master)

OSPF neighbor down

text
rpd[2001]: RPD_OSPF_NBRDOWN: OSPF neighbor 10.0.0.2 (realm ospf-v2
ge-0/0/1.0 area 0.0.0.0) state changed from Full to Down due to KillNbr
(event reason: interface went down)

Chassis alarm set

text
alarmd[5681]: Alarm set: License id=0, color=YELLOW, class=CHASSIS,
reason=BGP Routing Protocol(47) usage requires a license

NTP server unreachable

text
xntpd[5682]: NTP Server 192.0.2.50 is Unreachable

Caveats

  • SrcIP/DstIP/Neighbor IP extraction is IPv4-only. IPv6 unauthorized connection attempts (observed in the field) are still classified, MITRE-tagged, counted in dashboard badges, and matched by triggers, but do not appear in per-IP TopN widgets.
  • The xntpd "Unreachable" wording is parsed as observed; a reachability-restored counterpart has not been confirmed on real devices and is not matched.
  • Message types whose exact wording could not be verified against real output are intentionally not matched: 802.1X port authentication, LACP and STP state changes, MPLS LSP events, UI_CFG_AUDIT_* per-statement configuration audit, and Virtual Chassis member join/leave.
  • High-volume internal diagnostics (ifinfo/cprod PVIDB attribute spam, cscript Mist agent bookkeeping, craftd "Receive FX" alarm echo lines) are deliberately left untagged.

Dashboards

Two dashboards are included:

  • Juniper MX/EX: Overview - management-plane activity, config commits, alarm and routing status, top users, and recent events
  • Juniper MX/EX: Security - unauthorized access attempts, MITRE tactics, DDoS protection violations, and recent security events

Triggers

TriggerDescription
Juniper MX/EX: MITRE ATT&CK Threat DetectedCatch-all for MITRE-tagged events
Juniper MX/EX: Unauthorized Access AttemptUnauthorized SNMP or BGP connection attempt
Juniper MX/EX: DDoS Protocol ViolationControl-plane DDoS protection policer violation
Juniper MX/EX: Major Alarm SetMajor chassis alarm condition
Juniper MX/EX: Routing Neighbor DownBGP or OSPF routing-neighbor adjacency lost
Juniper MX/EX: Interface DownInterface link down
Juniper MX/EX | LogZilla Documentation