Update Log Forwarding Configuration
NOTE: The "enabled" field should not be specified. Log forwarding will be enabled as a result of this API call. To disable log forwarding use "/api/logforwarding/disable" API
The log forwarding configuration data
Show optional properties
{
"entities": [
{}
],
"host": "string",
"protocol": "string",
"cluster": "string"
}
"{\n \"entities\" : [ \"ANALYTICS\", \"COLLECTOR\" ],\n \"host\" : \"11.12.13.14\",\n \"protocol\" : \"CFAPI\",\n \"useSSL\" : true,\n \"cluster\" : \"SampleCluster\"\n}"
Indicates whether the logs should go to external log server or not
Entities to forward the logs from
The host to forward the logs to
Enumeration of the forwarding protocols
The Forwarding port
The port takes default value based on the protocol and whether SSL is enabled or not:
Protocol CFAPI, SSL disabled, Default port: 9000
Protocol CFAPI, SSL enabled, Default port: 9543
Protocol SYSLOG, SSL disabled, Default port: 514
Protocol SYSLOG, SSL enabled, Default port: 6514
Flag that indicates whether SSL protocol is used or not
The path to certificate authority file
The name of the cluster
The log forwarding configuration data
"{\n \"enabled\" : true,\n \"entities\" : [ \"CALL_STACK\", \"ANALYTICS\", \"COLLECTOR\", \"VIEW_BRIDGE\", \"VCOPS_BRIDGE\", \"TOMCAT_WEBAPP\", \"GEMFIRE\", \"SUITEAPI\", \"ADMIN_UI\", \"WEB\" ],\n \"host\" : \"10.11.12.13\",\n \"protocol\" : \"CFAPI\",\n \"useSSL\" : false,\n \"cluster\" : \"single\"\n}"
Indicates whether the logs should go to external log server or not
Entities to forward the logs from
The host to forward the logs to
Enumeration of the forwarding protocols
The Forwarding port
The port takes default value based on the protocol and whether SSL is enabled or not:
Protocol CFAPI, SSL disabled, Default port: 9000
Protocol CFAPI, SSL enabled, Default port: 9543
Protocol SYSLOG, SSL disabled, Default port: 514
Protocol SYSLOG, SSL enabled, Default port: 6514
Flag that indicates whether SSL protocol is used or not
The path to certificate authority file
The name of the cluster
curl -X PUT -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"cluster:"string","entities":["string"],"host:"string","protocol:"string"}' https://{api_host}/suite-api/api/logs/forwarding