FD.io VPP
v19.01.3-6-g70449b9b9
Vector Packet Processing
|
set syslog filter severity <severity>.
Set syslog severity filter, specified severity and greater match.
Example of how to configure syslog severity filter:
vpp# set syslog filter severity warning
Declaration: set_syslog_filter_command (src/vnet/syslog/syslog.c line 584)
Implementation: set_syslog_filter_command_fn.
set syslog sender collector <ip4-address> [port <port>] src <ip4-address> [vrf-id <vrf-id>] [max-msg-size <max-msg-size>].
Set syslog sender configuration.
Example of how to configure syslog sender:
vpp# set syslog sender collector 10.10.10.10 port 514 src 172.16.2.2
Declaration: set_syslog_sender_command (src/vnet/syslog/syslog.c line 525)
Implementation: set_syslog_sender_command_fn.
show syslog filter.
Show syslog severity filter.
Example of how to display syslog severity filter:
vpp# show syslog filter
severity-filter: warning
Declaration: show_syslog_filter_command (src/vnet/syslog/syslog.c line 602)
Implementation: show_syslog_filter_command_fn.
show syslog sender.
Show syslog sender configuration.
Example of how to display syslog sender configuration:
vpp# show syslog sender
collector 10.10.10.10:514, src address 172.16.2.2, VRF ID 0, max-msg-size 480
Declaration: show_syslog_sender_command (src/vnet/syslog/syslog.c line 546)
Implementation: show_syslog_sender_command_fn.
test syslog <facility> <severity> <app-name> <msgid> [sd-id <sd-id> sd-param <name> <value>] [<message].
This command generate test syslog message.
Example of how to generate following syslog message '<180>1 2018-11-07T11:36:41.231759Z 172.16.1.1 test 10484 testMsg [exampleSDID@32473 eventID="1011" eventSource="App" iut="3"] this is message'
vpp# test syslog local6 warning test testMsg sd-id exampleSDID@32473 sd-param eventID 1011 sd-param eventSource App sd-param iut 3 this is message
Declaration: test_syslog_command (src/vnet/syslog/syslog.c line 567)
Implementation: test_syslog_command_fn.