FD.io VPP  v19.04.1-1-ge4a0f9f
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 580)

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 521)

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 598)

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 542)

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

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

Implementation: test_syslog_command_fn.