FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
src/vnet/syslog

set syslog filter

Summary/usage

set syslog filter severity <severity>.

Description

Set syslog severity filter, specified severity and greater match.

Example usage

Example of how to configure syslog severity filter:

vpp# set syslog filter severity warning

Declaration and implementation

Declaration: set_syslog_filter_command (src/vnet/syslog/syslog.c line 579)

Implementation: set_syslog_filter_command_fn.

set syslog sender

Summary/usage

set syslog sender collector <ip4-address> [port <port>] src <ip4-address> [vrf-id <vrf-id>] [max-msg-size <max-msg-size>].

Description

Set syslog sender configuration.

Example usage

Example of how to configure syslog sender:

vpp# set syslog sender collector 10.10.10.10 port 514 src 172.16.2.2

Declaration and implementation

Declaration: set_syslog_sender_command (src/vnet/syslog/syslog.c line 520)

Implementation: set_syslog_sender_command_fn.

show syslog filter

Summary/usage

show syslog filter.

Description

Show syslog severity filter.

Example usage

Example of how to display syslog severity filter:

vpp# show syslog filter

severity-filter: warning

Declaration and implementation

Declaration: show_syslog_filter_command (src/vnet/syslog/syslog.c line 597)

Implementation: show_syslog_filter_command_fn.

show syslog sender

Summary/usage

show syslog sender.

Description

Show syslog sender configuration.

Example usage

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 and implementation

Declaration: show_syslog_sender_command (src/vnet/syslog/syslog.c line 541)

Implementation: show_syslog_sender_command_fn.

test syslog

Summary/usage

test syslog <facility> <severity> <app-name> <msgid> [sd-id <sd-id> sd-param <name> <value>] [<message].

Description

This command generate test syslog message.

Example usage

Example of how to generate following syslog message &#39;<em><180>1 2018-11-07T11:36:41.231759Z 172.16.1.1 test 10484 testMsg [exampleSDID@32473 eventID=&#34;1011&#34; eventSource=&#34;App&#34; iut=&#34;3&#34;] this is message</em>&#39;

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 and implementation

Declaration: test_syslog_command (src/vnet/syslog/syslog.c line 562)

Implementation: test_syslog_command_fn.