Syslog Remote Log Settings
Field | Type | Read only | Description |
Status | String | False | Status for remote syslog:
|
PortType | String | False | Port type allowed for remote syslog:
|
HostName | String | False | Host name of remote log server. Server address support the following:
|
PortNumber | Number | False | Port number of remote log server |
Request
Get Syslog Remote Log Settings
GET https://{{ip}}/redfish/v1/Managers/Self/LogServices/Oem/Lenovo/Syslog
Content-Type: application/json
Response
{
"@odata.context": "/redfish/v1/$metadata#LenovoSyslog.LenovoSyslog",
"@odata.etag": "\"1579438309\"",
"@odata.id": "/redfish/v1/Managers/Self/LogServices/Oem/Lenovo/Syslog",
"@odata.type": "#LenovoSyslog.LenovoSyslog",
"HostName": "none",
"Id": "Syslog",
"Name": "LogService Syslog Settings",
"PortNumber": 0,
"PortType": "none",
"Status": "disable"
}
Request
Change Syslog Remote Log Settings
PATCH https://{{ip}}/redfish/v1/Managers/Self/LogServices/Oem/Lenovo/Syslog
Content-Type: application/json
Request body
Disable remote syslog:
{
"Status": "disable"
}
Enable remote syslog:
{
"Status": "enable",
"PortType": "UDP",
"HostName": "remote.log.com",
"PortNumber": 514
}
Response code
The response content is 204 accepted with no body.
Note
If entering port number 0, it will set port number as default. The default port number is 514.
Give documentation feedback