---
title: "Create log forwarding configuration"
method: POST
path: "/log/forwarding"
tags: ["Log Forwarding"]
---

# Create log forwarding configuration

`POST /log/forwarding`

Create a new log forwarding configuration.

## Request body

- CreateLogForwardingRequest
  - `app` string, required — App unique identifier
  - `type` 'SyslogUdp' | 'SyslogTcp', required — Log endpoint type
  - `endpoint` string, required — Log destination endpoint
  - `port` integer, required — Log destination port
  - `token` string — Token passed as field of syslog
  - `format` 'SyslogRfc3164' | 'SyslogRfc5424', required — Which Syslog RFC will be used
  - `enabled` boolean, required — Whether forwarding is enabled

## Response `201`

Log-forwarding configuration created successfully.

- LogForwardingConfiguration
  - `id` string — Unique identifier
  - `app` string — App unique identifier
  - `productId` string — Product unique identifier
  - `type` 'SyslogUdp' | 'SyslogTcp' — Log endpoint type
  - `endpoint` string — Log destination endpoint
  - `port` integer — Log destination port
  - `createdAt` string, date-time — When the configuration was created
  - `token` string — Token passed as field of syslog
  - `format` 'SyslogRfc3164' | 'SyslogRfc5424' — Which Syslog RFC will be used
  - `enabled` boolean — Whether forwarding is enabled

## Other responses

- `400` — Invalid input.
- `401` — User is unauthorized.
- `500` — Unexpected server error.

---

[API](https://skmtc.net/bunny/apis/bunny-net-cdn-logging.md) · [All operations](https://skmtc.net/bunny/apis/bunny-net-cdn-logging/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bunny/bunny-net-cdn-logging/revisions/9e622620664b/schema)
