---
title: "Update log parser configuration"
method: PUT
path: "/v1/log-parsers/{parser-type}"
tags: ["Log Parsers"]
---

# Update log parser configuration

`PUT /v1/log-parsers/{parser-type}`

Replace the configuration document for the given server-side log parser.
The body must contain a `content` field holding a well-formed XML document
with a `<parser>` root element (an empty string clears the parser). Saving
the configuration reinitializes the live parser immediately.

## Request body

- object
  - `content` string, required — Parser configuration as an XML document, or an empty string to clear it.

## Response `204`

Log parser configuration updated successfully

## Other responses

- `400` — Missing/invalid content field or malformed parser XML
- `403` — Access denied (requires "Server configuration" access right)
- `404` — Unknown parser type
- `500` — Failed to store configuration

## Changes

- **2026-06-25** `4c9565b0add1` — 1 info
  - endpoint added
- **2026-05-08** `c6aaf3632e48` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/netxms/apis/netxms-api/changes/v1/log-parsers/:parser-type/put.md)

---

[API](https://skmtc.dev/netxms/apis/netxms-api.md) · [All operations](https://skmtc.dev/netxms/apis/netxms-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/netxms/netxms-api/revisions/b04ea2fbcedb/schema)
