Update log events per cluster for Log Monitoring

This API call updates the total log events per cluster limit based on the cluster resources size.

Authentication

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.

Endpoint

/api/cluster/v2/logMonitoring/refreshLogEventsLimit

Parameters

The request doesn't provide any configurable parameters.

Response

Response codes

Code
Type
Description
200

Successful operation. Returns new log events limit

500
-

Refreshing log events limit not possible due to lack of storage statistics

Response body objects

The LogEventsLimit object

Log events limit

Element
Type
Description
limit
integer

Specifies log events limit per minute

Response body JSON model

{
"limit": "10000"
}

Example

In this example, you increase the log events ingest limit to 54236 log events per minute per cluster.

Curl

curl -X POST "https://myManaged.cluster.com/api/cluster/v2/logMonitoring/refreshLogEventsLimit"
-H "accept: application/json; charset=utf-8"
-H "Authorization: Api-Token abc"

Request URL

https://myManaged.cluster.com/api/cluster/v2/logMonitoring/refreshLogEventsLimit

Response body

{
"limit": 54236
}

Response code

200