Set syslog settings
Set settings used to send logs to syslog server RFC5424
Responses
- 200
- 400
- 401
- 403
OK
- application/octet-stream
- Schema
- Example (from schema)
- Syslog config
Schema
- enabled booleanIf enabled logs will be send to server 
- tag stringPossible values: Value must match regular expression ^[a-zA-Z0-9]{1,32}$Alphanumeric, maximum length is 32 symbols 
- server object- This model describe syslog server configuration server string- Syslog server address port integer- Port number severity integer- Possible values: - <= 7- Events with this severity and higher will be send to server 
{
  "enabled": false,
  "tag": "aa12fb",
  "server": {
    "server": "192.168.88.249",
    "port": 514,
    "severity": 6
  }
}
{
  "enabled": false,
  "tag": "Tag",
  "server": {
    "server": "192.168.88.249",
    "port": 514,
    "severity": 6
  }
}
- Wrong server
- Wrong severity number. Available value is in range [0..7]
- Wrong port number. Available value is in range [0..65535]
- Missed json body or wrong param. Response sample:
  "error": "Wrong JSON body"
- Required field is not provided. Response sample:
  "error": "Wrong JSON body: no value for `param`"
where param - is a required field that was not provided
- Field was of the wrong type. Response sample:
  "error": "Wrong JSON body: value `param` was of the wrong type"
where param - is a field of the wrong type
- application/json
- Schema
- Example (from schema)
- Wrong server
- Wrong severity
- Wrong port
- Base
- No value
- Wrong param type
Schema
- error stringError message 
{
  "error": true
}
{
  "error": "Wrong server"
}
{
  "error": "Wrong severity number. Available value is in range [0..7]"
}
{
  "error": "Wrong port number. Available value is in range [0..65535]"
}
{
  "error": "Wrong JSON body"
}
{
  "error": "Wrong JSON body: no value for `param`"
}
{
  "error": "Wrong JSON body: value `param` was of the wrong type"
}
Unauthorized request. Log In
- application/json
- Schema
- Example (from schema)
- Log In
Schema
- error stringError message 
{
  "error": "Log In"
}
{
  "error": "Log In"
}
Administrator rights required. You are currently logged in with different user account. Log In with administrator rights
- application/json
- Schema
- Example (from schema)
- Admin Rights Required
Schema
- error stringError message 
{
  "error": "Administrator rights required"
}
{
  "error": "Administrator rights required"
}
Loading...