Skip to main content
POST
/
log
/
forwarding
Create log forwarding configuration
curl --request POST \
  --url https://api.bunny.net/mc/log/forwarding \
  --header 'AccessKey: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "app": "<string>",
  "type": "SyslogUdp",
  "endpoint": "<string>",
  "port": 123,
  "format": "SyslogRfc3164",
  "enabled": true,
  "token": "<string>"
}
'
{
  "id": "<string>",
  "app": "<string>",
  "productId": "<string>",
  "type": "SyslogUdp",
  "endpoint": "<string>",
  "port": 123,
  "createdAt": "2023-11-07T05:31:56Z",
  "token": "<string>",
  "format": "SyslogRfc3164",
  "enabled": true
}

Authorizations

AccessKey
string
header
required

Please enter a valid personal API key.

Body

application/json
app
string
required

App unique identifier

type
enum<string>
required

Log endpoint type

Available options:
SyslogUdp,
SyslogTcp
endpoint
string
required

Log destination endpoint

port
integer
required

Log destination port

format
enum<string>
required

Which Syslog RFC will be used

Available options:
SyslogRfc3164,
SyslogRfc5424
enabled
boolean
required

Whether forwarding is enabled

token
string

Token passed as field of syslog

Response

Log-forwarding configuration created successfully.

id
string

Unique identifier

app
string

App unique identifier

productId
string

Product unique identifier

type
enum<string>

Log endpoint type

Available options:
SyslogUdp,
SyslogTcp
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
enum<string>

Which Syslog RFC will be used

Available options:
SyslogRfc3164,
SyslogRfc5424
enabled
boolean

Whether forwarding is enabled