---
title: "POST /api/v1/config/log-allocation-config"
method: POST
path: "/api/v1/config/log-allocation-config"
tags: ["LogAllocationConfig"]
---

# POST /api/v1/config/log-allocation-config

`POST /api/v1/config/log-allocation-config`

## Request body

- Configv1CreateLogAllocationConfigRequest
  - `log_allocation_config` Configv1LogAllocationConfig — LogAllocationConfig is a singleton configuration object that specifies the configuration for Log budget allocations.
    - `created_at` string, date-time — Timestamp of when the LogAllocationConfig was created. Cannot be set by clients.
    - `updated_at` string, date-time — Timestamp of when the LogAllocationConfig was last updated. Cannot be set by clients.
    - `default_dataset` LogAllocationConfigDefaultDataset — Configuration for default dataset.
      - `allocation` Configv1LogAllocationConfigAllocation — Configuration for allocating resources to a dataset.
        - `percent_of_license` number, double — Sets the percentage of the license limit to allocate to the default dataset.
      - `priorities` LogAllocationConfigHighLowPriorities — Defines explicit high and low priority match criteria to specify which logs to drop first (low) and last (high). Anything not matched by either set of rules is considered default priority and is dropped after low priority but before high priority data.
        - `high_priority_filters` Configv1LogSearchFilter[] — A list of search filters defining which logs are considered high priority in this dataset. Filters are combined as OR statements so only one filter needs to match.
          - `query` string — Returns logs that match this query. The query can include only top-level operations. Nested clauses aren't supported. Only one type of `AND` or `OR` operator is allowed.
        - `low_priority_filters` Configv1LogSearchFilter[] — A list of search filters defining which logs are considered low priority in this dataset. Filters are combined as OR statements so only one filter needs to match.
          - `query` string — Returns logs that match this query. The query can include only top-level operations. Nested clauses aren't supported. Only one type of `AND` or `OR` operator is allowed.
    - `dataset_allocations` LogAllocationConfigDatasetAllocation[] — Defines datasets and budget allocations. Datasets are evaluated in order.
      - `dataset_slug` string — Slug of the dataset.
      - `allocation` Configv1LogAllocationConfigAllocation — Configuration for allocating resources to a dataset.
        - `percent_of_license` number, double — Sets the percentage of the license limit to allocate to the default dataset.
      - `priorities` LogAllocationConfigHighLowPriorities — Defines explicit high and low priority match criteria to specify which logs to drop first (low) and last (high). Anything not matched by either set of rules is considered default priority and is dropped after low priority but before high priority data.
        - `high_priority_filters` Configv1LogSearchFilter[] — A list of search filters defining which logs are considered high priority in this dataset. Filters are combined as OR statements so only one filter needs to match.
          - `query` string — Returns logs that match this query. The query can include only top-level operations. Nested clauses aren't supported. Only one type of `AND` or `OR` operator is allowed.
        - `low_priority_filters` Configv1LogSearchFilter[] — A list of search filters defining which logs are considered low priority in this dataset. Filters are combined as OR statements so only one filter needs to match.
          - `query` string — Returns logs that match this query. The query can include only top-level operations. Nested clauses aren't supported. Only one type of `AND` or `OR` operator is allowed.
  - `dry_run` boolean — If true, the LogAllocationConfig isn't created, and no response LogAllocationConfig will be returned. The response will return an error if the given LogAllocationConfig is invalid.

## Response `200`

A successful response containing the created LogAllocationConfig.

- Configv1CreateLogAllocationConfigResponse
  - `log_allocation_config` Configv1LogAllocationConfig — LogAllocationConfig is a singleton configuration object that specifies the configuration for Log budget allocations.
    - `created_at` string, date-time — Timestamp of when the LogAllocationConfig was created. Cannot be set by clients.
    - `updated_at` string, date-time — Timestamp of when the LogAllocationConfig was last updated. Cannot be set by clients.
    - `default_dataset` LogAllocationConfigDefaultDataset — Configuration for default dataset.
      - `allocation` Configv1LogAllocationConfigAllocation — Configuration for allocating resources to a dataset.
        - `percent_of_license` number, double — Sets the percentage of the license limit to allocate to the default dataset.
      - `priorities` LogAllocationConfigHighLowPriorities — Defines explicit high and low priority match criteria to specify which logs to drop first (low) and last (high). Anything not matched by either set of rules is considered default priority and is dropped after low priority but before high priority data.
        - `high_priority_filters` Configv1LogSearchFilter[] — A list of search filters defining which logs are considered high priority in this dataset. Filters are combined as OR statements so only one filter needs to match.
          - `query` string — Returns logs that match this query. The query can include only top-level operations. Nested clauses aren't supported. Only one type of `AND` or `OR` operator is allowed.
        - `low_priority_filters` Configv1LogSearchFilter[] — A list of search filters defining which logs are considered low priority in this dataset. Filters are combined as OR statements so only one filter needs to match.
          - `query` string — Returns logs that match this query. The query can include only top-level operations. Nested clauses aren't supported. Only one type of `AND` or `OR` operator is allowed.
    - `dataset_allocations` LogAllocationConfigDatasetAllocation[] — Defines datasets and budget allocations. Datasets are evaluated in order.
      - `dataset_slug` string — Slug of the dataset.
      - `allocation` Configv1LogAllocationConfigAllocation — Configuration for allocating resources to a dataset.
        - `percent_of_license` number, double — Sets the percentage of the license limit to allocate to the default dataset.
      - `priorities` LogAllocationConfigHighLowPriorities — Defines explicit high and low priority match criteria to specify which logs to drop first (low) and last (high). Anything not matched by either set of rules is considered default priority and is dropped after low priority but before high priority data.
        - `high_priority_filters` Configv1LogSearchFilter[] — A list of search filters defining which logs are considered high priority in this dataset. Filters are combined as OR statements so only one filter needs to match.
          - `query` string — Returns logs that match this query. The query can include only top-level operations. Nested clauses aren't supported. Only one type of `AND` or `OR` operator is allowed.
        - `low_priority_filters` Configv1LogSearchFilter[] — A list of search filters defining which logs are considered low priority in this dataset. Filters are combined as OR statements so only one filter needs to match.
          - `query` string — Returns logs that match this query. The query can include only top-level operations. Nested clauses aren't supported. Only one type of `AND` or `OR` operator is allowed.

## Other responses

- `400` — Cannot create the LogAllocationConfig because the request is invalid.
- `409` — Cannot create the LogAllocationConfig because there is a conflict with an existing LogAllocationConfig.
- `500` — An unexpected error response.
- `default` — An undefined error response.

---

[API](https://skmtc.net/chronosphere/apis/config-v1-api.md) · [All operations](https://skmtc.net/chronosphere/apis/config-v1-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/chronosphere/config-v1-api/versions/530951bd2ccf/schema)
