Create New Log Group

This endpoint allows you to create a new log group, which serves as a container for storing and organizing structured logs related to a specific service or application. Log groups help separate and manage logs by context (e.g., environment, service name, or component), enabling better traceability and control over log data.

Each log group can be assigned a custom name, retention policy, and linked to a specific service using its service_id. The enabled flag allows you to control whether the log group is active upon creation.

Typical Use Cases:
  • Set up log grouping for new cloud functions, microservices, or components
  • Enable organized log collection for specific environments (e.g., production vs staging)
  • Configure log retention policy per group

Authorization: Bearer YOUR_TOKEN

Request Body Parameters
  • name string
    The name of the log group. Example: '/aws/lambda/my-function'
  • service_id string
  • description string
  • retention integer
  • enabled boolean
ResponseThis section is used to view the possible HTTP response codes returned by the API. These codes indicate the status of a request, such as 201 (Created), 401 (Unauthorized), 409 (Conflict), or 422 (Unprocessable Entity).