This API call updates the total log events per cluster limit based on the cluster resources size.
To execute this request, you need the Service Provider API (ServiceProviderAPI) permission assigned to your API token. Generate your API token via Cluster Management Console (CMC). To learn how to obtain and use it, see Cluster API - Authentication.
/api/cluster/v2/logMonitoring/refreshLogEventsLimit
The request doesn't provide any configurable parameters.
| Code | Type | Description |
|---|---|---|
| 200 | Log | Successful operation. Returns new log events limit |
| 500 | - | Refreshing log events limit not possible due to lack of storage statistics |
LogEventsLimit objectLog events limit
| Element | Type | Description |
|---|---|---|
| limit | integer | Specifies log events limit per minute |
{"limit": "10000"}
In this example, you increase the log events ingest limit to 54236 log events per minute per cluster.
curl -X POST "https://myManaged.cluster.com/api/cluster/v2/logMonitoring/refreshLogEventsLimit"-H "accept: application/json; charset=utf-8"-H "Authorization: Api-Token abc"
https://myManaged.cluster.com/api/cluster/v2/logMonitoring/refreshLogEventsLimit
{"limit": 54236}
200