This API is used to create a log group. All API URLs described in this section must be case-sensitive.
This function describes how to create a log group for log storage and query. You can create a maximum of 100 log groups.
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID |
Parameter |
Sub-Parameter |
Mandatory |
Type |
Description |
---|---|---|---|---|
log_group_name |
N/A |
Yes |
String |
Log group name. The configuration rules are as follows:
|
ttl_in_days |
N/A |
Yes |
Int |
Log expiration time. The value is fixed to 7 days. |
POST /v2.0/{project_id}/log-groups { "log_group_name":"test01", "ttl_in_days": 7 }
Parameter |
Sub-Parameter |
Type |
Description |
---|---|---|---|
log_group_id |
N/A |
String |
Log group ID |
{ "log_group_id":"56b4b31f-3024-11e9-9023-286ed488ce71" }