Document navigation

Log Server

Overview

ZStack Cloud allows you to add a log server to the cloud. With the log server, you can collect management node logs and quickly locate problems, thereby improving the cloud O&M efficiency.

Operations

AddLogConfiguration

Adds log server configurations. For example,
AddLogConfiguration name=syslog type=log4j2 configuration={\n\"appenderType\": \"Syslog\",\n\"configuration\": {\n\"hostname\": \"192.168.0.11\",\n\"port\": \"514\",\n\"protocol\": \"UDP\",\n\"facility\": \"LOCAL5\"\n}\n}

Parameters

Name Description Optional Valid Value Starting Version
name The resource name. For more information, see Resource Property. 3.10.0
description The resource description. For more information, see Resource Property. Yes 3.10.0
type 3.10.0
configuration 3.10.0
resourceUuid The resource UUID. Yes 3.10.0
tagUuids The tag UUID list. Yes 3.10.0
userTags The user tags. For more information, see CreateUserTag. Yes 3.10.0
systemTags The system tags. For more information, see CreateSystemTag. Yes 3.10.0
timeout Yes

DeleteLogConfiguration

Deletes log server configurations. For example,
DeleteLogConfiguration configId=0.0

Parameters

Name Description Optional Valid Value Starting Version
configId The configuration ID. 3.10.0
deleteMode The delete mode. Default mode: Permissive. Yes
  • Enforcing
  • Permissive
3.10.0
userTags The user tags. For more information, see CreateUserTag. Yes 3.10.0
systemTags The system tags. For more information, see CreateSystemTag. Yes 3.10.0
timeout Yes

GetLogConfiguration

Obtains log server configurations. For example,
GetLogConfiguration

Parameters

Name Description Optional Valid Value Starting Version
userTags The user tags. For more information, see CreateUserTag. Yes 3.10.0
systemTags The system tags. For more information, see CreateSystemTag. Yes 3.10.0
timeout Yes

UpdateLogConfiguration

Updates log server configurations. For example,
UpdateLogConfiguration configId=1.0

Parameters

Name Description Optional Valid Value Starting Version
configId The configuration ID. 3.10.0
name The resource name. Yes 3.10.0
description The detailed description of the resource. Yes 3.10.0
userTags The user tags. For more information, see CreateUserTag. Yes 3.10.0
systemTags The system tags. For more information, see CreateSystemTag. Yes 3.10.0
timeout Yes
CLI Command Manual | 4.8.38 | ZStack Cloud · ZCF | ZStack Resource Center