NSX CLI Guide
set logging-server <hostname-or-ip-address[:port]> proto <proto> level <level> [facility <facility>] [messageid <messageid>] [serverca <filename>] [clientca <filename>] [certificate <filename>] [key <filename>] [structured-data <structured-data>]
Configure a logging server. The logging system uses the facility
codes defined in RFC 5424. Facility local7 is used for audit messages,
and local6 is used for non-audit messages.
Parameters:
Option | Description |
---|---|
<hostname-or-ip-address[:port]> | A hostname or IPv4 or IPv6 (enclose between []) address with optional port delimited by a colon |
<proto> | Logging server protocol Allowed values: tcp, udp, tls, li, li-tls |
<level> | Level of log entries to export Allowed values: emerg, alert, crit, err, warning, notice, info, debug |
<facility> | Comma delimited list of facilities of log entries to export |
<messageid> | Comma delimited list of MSGIDs of log entries to export |
<filename> | Existing file argument |
<structured-data> | Structured data of log entries to export Allowed pattern: ^(alarmId|alarmState|audit|comp|depr|entId|eReqId|errorCode|eventFeatureName|eventId|eventSev|eventState|eventType|euser|inst|level|method|nodeId|org|path|proj|security|site|subcomp|s2comp|splitId|splitIndex|tenantId|tid|tname|update|username|vpc|namespace)=.+$ |