This function describes how to create a log stream under a created log group. You can view and query raw logs under a log stream.
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID |
group_id |
Yes |
String |
ID of a created log group |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
log_topic_name |
Yes |
String |
Log stream name. The configuration rules are as follows:
|
POST /v2.0/{project_id}/log-groups/{group_id}/log-topics { "log_topic_name":"testTopic01" }
Parameter |
Type |
Description |
---|---|---|
log_topic_id |
String |
ID of a log stream |
{ "log_topic_id":"a25d64c8-3028-11e9-9660-286ed488ce71" }
For details about status code, see Status Code.