Getting the Syslog
Getting the Syslog
Get the current Syslog configuration for OpsManager.
Request
URI
GET
https://{opsmanager-installation}/api/v0/settings/syslog
COPY
Responses
200
OK
{
"syslog": {
"enabled": false,
"address": "string",
"port": "string",
"transport_protocol": "string",
"queue_size": 0,
"tls_enabled": false,
"permitted_peer": "string",
"ssl_ca_certificate": "string",
"environment": "string",
"forward_debug_logs": false,
"custom_rsyslog_configuration": "string"
}
}
syslog
Optional
syslog
400
Setup is not completed
Returns
RequireSetupCompleted
of type(s)
application/json
{
"errors": {
"errors": [
"string"
]
}
}
401
Unauthorized
Returns
UnauthorizedResponse
of type(s)
application/json
{
"errors": {
"errors": [
"string"
]
}
}
403
Forbidden
Returns
ForbiddenResponse
of type(s)
application/json
{
"errors": {
"errors": [
"string"
]
}
}
404
Product not found
Returns
RequiresActiveProduct
of type(s)
application/json
{
"errors": {
"errors": [
"string"
]
}
}
422
Syslog not enabled for the product
Returns
NestedErrorsResponseVariant
of type(s)
application/json
{
"errors": {
"errors": [
"string"
]
}
}
object
errors
Optional
errors
Code Samples
COPY
curl -H 'Authorization: <value>' https://{api_host}/api/v0/settings/syslog