Viewing number of logs by period
- Print
- PDF
Viewing number of logs by period
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
The latest service changes have not yet been reflected in this content. We will update the content as soon as possible. Please refer to the Korean version for information on the latest updates.
View in various ways the number of logs collected in Cloud Log Analytics.
View the number of logs per period
View the number of logs collected in Cloud Log Analytics based on a specific interval.
Request URL
GET https://cloudloganalytics.apigw.ntruss.com/api/{regionCode}-v1/logs/count/interval
Request headers
Header name | Description |
---|---|
x-ncp-apigw-timestamp | Time elapsed in milliseconds since January 1, 1970, 00:00:00 UTC The request is considered invalid if the time difference compared to the API Gateway server is more than 5 minutes x-ncp-apigw-timestamp:{Timestamp} |
x-ncp-apigw-api-key | Key value issued by APIGWx-ncp-apigw-api-key:{API Gateway API Key} |
x-ncp-iam-access-key | Access Key ID value issued from NAVER Cloud Platform portalx-ncp-iam-access-key:{Account Access Key} |
x-ncp-apigw-signature-v2 | Signature encrypted with the Access Key ID value and Secret Keyx-ncp-apigw-signature-v2:{API Gateway Signature} |
Content-Type | Specifies the request body content type as application/jsonContent-Type: application/json |
Request parameters
Parameter | Type | Required | Description |
---|---|---|---|
startTime | String | N | Search start point ex) 1593848345548(timestamp) |
endTime | String | N | Search end point ex) 1593848345548(timestamp) |
interval | String | N | Interval default:1d E.g., 1d (1 day), 1h (1 hour), 1m (1 minute) |
Request examples
GET https://cloudloganalytics.apigw.ntruss.com/api/{regionCode}-v1/logs/count/interval?endTime=1593848345548&interval=1d&startTime=1593848345548
HOST: cloudloganalytics.apigw.ntruss.com
Content-Type: application/json
x-ncp-apigw-signature-v2: FJSBB4K3XnaGAvVe0Hzj3/2hfNWvgLHR1rQHW2Et2Rs=
x-ncp-apigw-timestamp: 1593848345548
x-ncp-iam-access-key: 11IKBWgQegM4DwiJL4mo
curl -X GET "https://cloudloganalytics.apigw.ntruss.com/api/{regionCode}-v1/logs/count/interval?endTime=1593848345548&interval=1d&startTime=1593848345548"
-H "accept: application/json"
-H "x-ncp-iam-access-key: 11IKBWgQegM4DwiJL4mo"
-H "x-ncp-apigw-timestamp: 1594031083481"
-H "x-ncp-apigw-signature-v2: bNwDbkLNYmkMoklTrUBYYWak4JS2Zt6w7zn8KXyhV7w="
Response examples
{
"code": 0,
"message": "Your request has been processed normally",
"result": {
"chartData": [
[
"06-29",
0
],
[
"06-30",
0
],
[
"07-01",
0
],
[
"07-02",
13709
],
[
"07-03",
17292
],
[
"07-04",
17149
],
[
"07-05",
17204
],
[
"07-06",
7496
]
]
}
}
Was this article helpful?