Syslog Junos
07.02 2024 | by massimilianoIl Syslog esamina attraverso dei log eventuali errori e vengono gestiti via Localmente su console Su memoria RAM (buffer) Su […]
Il Syslog esamina attraverso dei log eventuali errori e vengono gestiti via
Localmente su console
Su memoria RAM (buffer)
Su linea VTY
Su un server esterno
Porta UDP 514
I messaggi vengono salvati in un file locale (path default /var/log/messages) ed inviati ad un Server Syslog, console eppure ad un utente quando accede allo switch.
In Junos di default i messaggi syslog non riportano priorità (facility + severity) e per riportare la priority bisogna specificare la keyword explicit-priority

Livelli di Severity:
Emergency: 0
Alert: 1
Critical: 2
Error: 3
Warning: 4
Notice: 5
Informational: 6
Debug: 7
Facilities:
Any
Authorization
Change-Log
Conflict-Log
Daemon
DFC (Dynamic Flow Capture)
Firewall
FTP
Interactive commands
Kernel
PFE (Packet Forwardig Engine)
User
Esempio di Configurazione:
root@vMX1> configure
Entering configuration mode
{master}[edit]
root@vMX1# edit system syslog
{master}[edit system syslog]
root@vMX1# set ?
Possible completions:
allow-duplicates Do not suppress the repeated message for all targets
+ apply-groups Groups from which to inherit configuration data
+ apply-groups-except Don’t inherit configuration data from these groups
> archive Archive file information
> console Console logging
> file File in which to log data
> host Host to be notified
log-rotate-frequency Rotate log frequency (1..59 minutes)
routing-instance Routing instance
> server Enable syslog server
source-address Use specified address as source address
> time-format Additional information to include in system log timestamp
> user Notify a user of the event
{master}[edit system syslog]
Esempio di configurazione su MX series
{master}[edit system syslog]
root@vMX1#
root@vMX1# show Â
user * {
any emergency;
}
host 10.4.5.18
any any;
explicit-priority;
}
file messages {
any notice;
authorization info;
}
file interactive-commands {
interactive-commands any;
}