FD.io VPP
v19.08.3-2-gbabecb413
Vector Packet Processing
|
VPP provides RFC5424 syslog protocol logging, which is used to transport event messages across network. VPP currently suports UDP transport based on RFC5426.
The syslog message has the following format:
The header contains, priority, version, timestamp, hostname, application, process id and message id. It is followed by structured data, which provides a mechanism to express event data in easily parsable format. Structured data can contain zero, one or multiple structured data elements. Structured data element contains name-value pairs. Structured data can by followed by free-form message.
Following example explains how to use the internal APIs to genrate syslog message:
Example above produces following syslog message: <134>1 2018-11-12T11:25:30.252715Z 172.16.4.1 NAT 5901 SADD [nsess SSUBIX="0" SVLAN="0" IATYP="IPv4" ISADDR="172.16.1.2" ISPORT="6303" XATYP="IPv4" XSADDR="10.0.0.3" XSPORT="16253" PROTO="6"]
To add free-form message use: