User Manual

Table Of Contents
[Example]
Set the SYSLOG server IPv4 address to 192.168.100.1.
SWP2(config)#logging host 192.168.100.1
Set the SYSLOG server IPv6 address to fe80::2a0:deff:fe11:2233.
SWP2(config)#logging host fe80::2a0:deff:fe11:2233%vlan1
4.11.2 Setting the notification format of the log
[Syntax]
logging format type
no logging format
[Parameter]
type : Log format type
Setting value Description
legacy
Proprietary format that does not include the
header section (time stamp, host name)
[Initial value]
no logging format
[Input mode]
global configuration mode
[Description]
Change the format of messages sent to the SYSLOG server.
If this command is executed with the "no" syntax, the header (time stamp, host name) is included in the SYSLOG message.
[Example]
Sets the format of the SYSLOG message to no header.
SWP2(config)#logging format legacy
4.11.3 Setting the log facility value
[Syntax]
logging facility facility
no logging facility
[Parameter]
facility : Log facility value
Setting value Description
0..23 facility value
user 1
local0..local7 16..23
[Initial value]
logging facility local0
[Input mode]
global configuration mode
[Description]
Change the facility value of messages sent to the SYSLOG server.
54 | Command Reference | Maintenance and operation functions