فرمت پیشفرض
این فرمت پیشفرض است (در صورتی که تنظیمات اضافی برای فرمت تعریف نشده باشد).
Sample message
<189>%SYSLOG-N-NEWSYSLOGSERVER: configure new syslog server 192.168.64.3
Sample message
<189>%SYSLOG-N-NEWSYSLOGSERVER: configure new syslog server 192.168.64.3
شناسه مبدا
پیغام syslog با هدر مطابق با استاندارد RFC5424
برای فعالسازی هدر این فرمت، باید Origin ID وارد شود. همچنین، فرمت پیام باید به صورت پیشفرض باقی بماند.
TOP(config)#logging origin-id
string The user defined string will be used as the hostname
field of syslog header
hostname The sysname will be used as the hostname field of a
syslog message
ip The IP address of the sending interface will be used
as the hostname field of a syslog message
ipv6 The IPv6 address of the sending interface will be used
TOP(config)#logging origin-id
string The user defined string will be used as the hostname
field of syslog header
hostname The sysname will be used as the hostname field of a
syslog message
ip The IP address of the sending interface will be used
as the hostname field of a syslog message
ipv6 The IPv6 address of the sending interface will be used
Sample message
<189>1 2024-03-13T19:49:18+07:00 TOP SYSLOG - NEWSYSLOGSERVER - configure new syslog server 192.168.64.3
<189>1 2024-03-13T20:06:33+07:00 192.168.64.4 SYSLOG - NEWSYSLOGSERVER - configure new syslog server 192.168.64.3
<189>1 2024-03-13T20:07:21+07:00 SomeString SYSLOG - NEWSYSLOGSERVER - configure new syslog server 192.168.64.3
Sample message
<189>1 2024-03-13T19:49:18+07:00 TOP SYSLOG - NEWSYSLOGSERVER - configure new syslog server 192.168.64.3
<189>1 2024-03-13T20:06:33+07:00 192.168.64.4 SYSLOG - NEWSYSLOGSERVER - configure new syslog server 192.168.64.3
<189>1 2024-03-13T20:07:21+07:00 SomeString SYSLOG - NEWSYSLOGSERVER - configure new syslog server 192.168.64.3
Proc ID همیشه به صورت "-" نمایش داده میشود.
فرمت CEF
فرمت CEF فقط برای remote syslog server با استفاده از دستور زیر فعال میشود:
TOP(config)#logging host 192.168.64.3 msg-format
default Default message format
cef CEF message format
TOP(config)#logging host 192.168.64.3 msg-format
default Default message format
cef CEF message format
Sample messages
CEF:0|Eltex|MES2324B|ES32002580|2021|SYSLOG NEWSYSLOGSERVER|4|msg=configure new syslog server 192.168.64.3
Sample messages
CEF:0|Eltex|MES2324B|ES32002580|2021|SYSLOG NEWSYSLOGSERVER|4|msg=configure new syslog server 192.168.64.3
فرمت CEF با Origin ID
Sample messages
2024-03-13T20:19:49+07:00 192.168.64.4 CEF:0|Eltex|MES2324B|ES32002580|2021|SYSLOG NEWSYSLOGSERVER|4|msg=configure new syslog server 192.168.64.3
Sample messages
2024-03-13T20:19:49+07:00 192.168.64.4 CEF:0|Eltex|MES2324B|ES32002580|2021|SYSLOG NEWSYSLOGSERVER|4|msg=configure new syslog server 192.168.64.3
×