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
}Create a new 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
}Please enter a valid personal API key.
App unique identifier
Log endpoint type
SyslogUdp, SyslogTcp Log destination endpoint
Log destination port
Which Syslog RFC will be used
SyslogRfc3164, SyslogRfc5424 Whether forwarding is enabled
Token passed as field of syslog
Log-forwarding configuration created successfully.
Unique identifier
App unique identifier
Product unique identifier
Log endpoint type
SyslogUdp, SyslogTcp Log destination endpoint
Log destination port
When the configuration was created
Token passed as field of syslog
Which Syslog RFC will be used
SyslogRfc3164, SyslogRfc5424 Whether forwarding is enabled
Was this page helpful?