---
title: "PUT /api/v1/config/log-ingest-config"
method: PUT
path: "/api/v1/config/log-ingest-config"
tags: ["LogIngestConfig"]
---

# PUT /api/v1/config/log-ingest-config

`PUT /api/v1/config/log-ingest-config`

## Request body

- Configv1UpdateLogIngestConfigRequest
  - `log_ingest_config` Configv1LogIngestConfig — LogIngestConfig is a singleton configuration object that specifies the configuration for log ingest.
    - `created_at` string, date-time — Timestamp of when the LogIngestConfig was created. Cannot be set by clients.
    - `updated_at` string, date-time — Timestamp of when the LogIngestConfig was last updated. Cannot be set by clients.
    - `parsers` Configv1LogParser[] — The ordered list of parsers to run on ingested logs. The first parser which matches the log is used.
      - `name` string — Name is the name of the parser.
      - `regex` string — Regex is the Re2 regex parser pattern to apply. Named capturing groups become named fields in the extracted log.
  - `create_if_missing` boolean — If true, the LogIngestConfig will be created if it does not already exist. If false, an error will be returned if the LogIngestConfig does not already exist.
  - `dry_run` boolean — If true, the LogIngestConfig isn't created or updated, and no response LogIngestConfig will be returned. The response will return an error if the given LogIngestConfig is invalid.

## Response `200`

A successful response containing the updated LogIngestConfig.

- Configv1UpdateLogIngestConfigResponse
  - `log_ingest_config` Configv1LogIngestConfig — LogIngestConfig is a singleton configuration object that specifies the configuration for log ingest.
    - `created_at` string, date-time — Timestamp of when the LogIngestConfig was created. Cannot be set by clients.
    - `updated_at` string, date-time — Timestamp of when the LogIngestConfig was last updated. Cannot be set by clients.
    - `parsers` Configv1LogParser[] — The ordered list of parsers to run on ingested logs. The first parser which matches the log is used.
      - `name` string — Name is the name of the parser.
      - `regex` string — Regex is the Re2 regex parser pattern to apply. Named capturing groups become named fields in the extracted log.

## Other responses

- `400` — Cannot update the LogIngestConfig because the request is invalid.
- `404` — Cannot update the LogIngestConfig because LogIngestConfig has not been created.
- `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)
