Add Syslog Server
Register a Syslog server with the library to receive Syslog notifications.
The Syslog server is uniquely identified by the server address which is its IP address or host name. The default port for Syslog servers is 514. Events sent to Syslog servers can be filtered at the library level by severity level (error, warning, and/or information) This test may take 5-10 minutes to run plus an additional 10 minutes for every drive tested.
The maximum number of configured Syslog servers is five.
Request syntax
POST
/v1/notification/syslog/servers {"address": <address>, "port": <port>, "subscribed":
["error"|"warning"|"information", ...]}
Register a Syslog server with the library to
receive Syslog notifications.
Request body parameters
address
(string, required)-
IPv4 address or host name of the Syslog server.
port
(number, optional)-
Port number of the syslog server. The default is 514.
subscribed
(array of strings)-
A list of event severities that specify which events will be sent to this Syslog server. This list includes the following possible strings: “error”, “warning”, or “information”
Example
> POST /v1/notification/syslog/servers {"address": "192.168.0.13"}
HTTP/1.1 201 Created
Location: /v1/notification/syslog/servers/192.168.0.13
Content-Type: application/json
Content-Length: 10
Error handling
- Returns
422 Unprocessable Entry
if five Syslog servers are already configured when this is called.