Log specification

Create log specification

Create a new log specification.

post/controlplane/log/spec

Request body

organization_idinteger

The ID of the organization.

account_idinteger

The ID of the account.

template_varsobject
selector_definitionobject
selectorobject

Example request

{
  "organization_id": 1234,
  "account_id": 2345
}

Response

Log specification created successfully.

idstring

The ID of the log specification.

organization_idinteger

The ID of the organization.

account_idinteger

The ID of the account.

template_varsobject
selector_definitionobject
selectorobject
namestring

The name of the log.

created_atstring date-time

The ISO-8601 UTC timestamp of when the log was created.

updated_atstring date-time nullable

The ISO-8601 UTC timestamp of when the log was last updated.

Example response

{
  "id": "3456",
  "organization_id": 1234,
  "account_id": 2345,
  "created_at": "2021-01-02T00:00:00Z",
  "updated_at": "2021-01-02T00:00:00Z"
}

Changes